Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
ReflectiveRapidJSON::MaybeUnique< T > Struct Template Reference

The MaybeUnique class represents either a std::unique_ptr or a raw pointer. More...

#include <clangversionabstraction.h>

Public Member Functions

 operator T* ()
template<typename X>
 operator std::unique_ptr< X > () &&

Public Attributes

T * val

Detailed Description

template<typename T>
struct ReflectiveRapidJSON::MaybeUnique< T >

The MaybeUnique class represents either a std::unique_ptr or a raw pointer.

Remarks
This is used to support Clang < 3.6 which has not been using unique_ptr in many places yet.

Definition at line 17 of file clangversionabstraction.h.

Member Function Documentation

◆ operator std::unique_ptr< X >()

template<typename T>
template<typename X>
ReflectiveRapidJSON::MaybeUnique< T >::operator std::unique_ptr< X > ( ) &&
inline

Definition at line 23 of file clangversionabstraction.h.

◆ operator T*()

template<typename T>
ReflectiveRapidJSON::MaybeUnique< T >::operator T* ( )
inline

Definition at line 19 of file clangversionabstraction.h.

Member Data Documentation

◆ val

template<typename T>
T* ReflectiveRapidJSON::MaybeUnique< T >::val

Definition at line 18 of file clangversionabstraction.h.


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