Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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 129 of file trait.hpp.

Public Types

using Type = X
 

Static Public Member Functions

static X & extract (X const &x)
 

Member Typedef Documentation

◆ Type

template<typename X >
using Type = X

Definition at line 132 of file trait.hpp.

Member Function Documentation

◆ extract()

template<typename X >
static X & extract ( X const x)
inlinestatic

Definition at line 135 of file trait.hpp.

Referenced by lib::meta::unwrap().

+ Here is the caller graph for this function:
+ Inheritance diagram for Unwrap< X >:
+ Collaboration diagram for Unwrap< X >:

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