Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Type that represents a pair. More...
#include <pair.hpp>
Public Types | |
using | type = conditional_t<!is_empty<First>::value || is_empty<Second>::value, First, Second> |
using | first = First |
using | second = Second |
Public Member Functions | |
pair (type &v) | |
pair (const type &v) | |
operator type & () | |
operator const type & () const | |
type * | operator-> () |
const type * | operator-> () const |
type & | operator* () |
const type & | operator* () const |
Type that represents a pair.
The pair type can be used to represent a pair at compile time, and is able to automatically derive the storage type associated with the pair, accessible through pair::type.
The storage type is derived using the following rules:
The pair type can hold a temporary value so that it can be used in the signatures of queries