Lumiera  0.pre.03
»edit your freedom«
Unwrap< X > Struct Template Reference

#include "lib/meta/trait.hpp"

Description

template<typename X>
struct lib::meta::Unwrap< X >

Helper for type analysis and convenience accessors: attempts to extract a base type from various wrappers.

Additionally allows to extract/deref the wrapped element.

Note
can also be used as a meta function to detect "anything wrapped"
Warning
strips away any const
also strips away smart-ptrs and lifecycle managers!

Definition at line 128 of file trait.hpp.

Public Types

using Type = X
 

Static Public Member Functions

static X & extract (X const &x)
 
+ Inheritance diagram for Unwrap< X >:
+ Collaboration diagram for Unwrap< X >:

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