NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nonstd::any_lite::any Class Reference

#include <any-lite.hpp>

Public Member Functions

any_constexpr any () any_noexcept
 
 any (any const &other)
 
template<class ValueType >
 any (ValueType const &value)
 
 ~any ()
 
anyoperator= (any const &other)
 
template<class ValueType >
anyoperator= (ValueType const &value)
 
void reset () any_noexcept
 
void swap (any &other) any_noexcept
 
bool has_value () const any_noexcept
 
const std::type_info & type () const any_noexcept
 
template<class ValueType >
const ValueType * to_ptr () const
 
template<class ValueType >
ValueType * to_ptr ()
 

Detailed Description

Definition at line 428 of file any-lite.hpp.

Constructor & Destructor Documentation

◆ any() [1/3]

any_constexpr nonstd::any_lite::any::any ( )
inline

Definition at line 431 of file any-lite.hpp.

◆ any() [2/3]

nonstd::any_lite::any::any ( any const &  other)
inline

◆ any() [3/3]

template<class ValueType >
nonstd::any_lite::any::any ( ValueType const &  value)
inline

Definition at line 474 of file any-lite.hpp.

◆ ~any()

nonstd::any_lite::any::~any ( )
inline

Definition at line 480 of file any-lite.hpp.

Member Function Documentation

◆ operator=() [1/2]

any& nonstd::any_lite::any::operator= ( any const &  other)
inline

Definition at line 485 of file any-lite.hpp.

References any_noexcept, nonstd::optional_lite::std11::move(), and swap().

◆ operator=() [2/2]

template<class ValueType >
any& nonstd::any_lite::any::operator= ( ValueType const &  value)
inline

Definition at line 527 of file any-lite.hpp.

References swap().

◆ reset()

void nonstd::any_lite::any::reset ( )
inline

Definition at line 535 of file any-lite.hpp.

References any_nullptr.

◆ swap()

void nonstd::any_lite::any::swap ( any other)
inline

Definition at line 540 of file any-lite.hpp.

References nonstd::any_lite::swap().

Referenced by operator=().

◆ has_value()

bool nonstd::any_lite::any::has_value ( ) const
inline

Definition at line 545 of file any-lite.hpp.

References any_nullptr.

◆ type()

const std::type_info& nonstd::any_lite::any::type ( ) const
inline

Definition at line 550 of file any-lite.hpp.

Referenced by nonstd::any_lite::any_cast().

◆ to_ptr() [1/2]

template<class ValueType >
const ValueType* nonstd::any_lite::any::to_ptr ( ) const
inline

Definition at line 560 of file any-lite.hpp.

Referenced by nonstd::any_lite::any_cast().

◆ to_ptr() [2/2]

template<class ValueType >
ValueType* nonstd::any_lite::any::to_ptr ( )
inline

Definition at line 566 of file any-lite.hpp.

References any_override, and nonstd::optional_lite::std11::move().


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