Lumiera  0.pre.03
»edit your freedom«
Trait< TY, enable_if< exposes_CloneFunction< TY > > > Struct Template Reference

#include "lib/polymorphic-value.hpp"

Description

template<class TY>
struct lib::polyvalue::Trait< TY, enable_if< exposes_CloneFunction< TY > > >

Special case when the embedded types support copying on the API level, e.g.

there is a sub-API exposing a cloneInto function. In this case, the actual implementation classes can be instantiated as-is and the copy operations can be accessed by a simple static_cast without runtime overhead.

Definition at line 327 of file polymorphic-value.hpp.

Public Types

enum  { ADMIN_OVERHEAD = 1 * sizeof(void*) }
 
using AdapterAttachment = struct{ }
 
using Assignment = AssignmentPolicy< CopyAPI >
 
using CopyAPI = TY
 

Static Public Member Functions

template<class IFA >
static CopyAPI & accessCopyHandlingInterface (IFA &bufferContents)
 
+ Collaboration diagram for Trait< TY, enable_if< exposes_CloneFunction< TY > > >:

The documentation for this struct was generated from the following file: