Namespaces | Classes | Functions
linb Namespace Reference

Namespaces

 detail
 

Classes

class  any
 
class  bad_any_cast
 
struct  in_place_type_t
 

Functions

template<typename ValueType >
ValueType any_cast (any &&operand)
 
template<typename ValueType >
ValueType any_cast (any &operand)
 Performs *any_cast<remove_reference_t<ValueType>>(&operand), or throws bad_any_cast on failure. More...
 
template<typename ValueType >
ValueType * any_cast (any *operand) noexcept
 
template<typename ValueType >
ValueType any_cast (const any &operand)
 Performs *any_cast<add_const_t<remove_reference_t<ValueType>>>(&operand), or throws bad_any_cast on failure. More...
 
template<typename ValueType >
const ValueType * any_cast (const any *operand) noexcept
 
template<typename T , typename... Args>
any make_any (Args &&... args)
 
template<typename T , typename U , typename... Args>
any make_any (std::initializer_list< U > il, Args &&... args)
 
void swap (any &lhs, any &rhs) noexcept
 

Function Documentation

◆ any_cast() [1/5]

template<typename ValueType >
ValueType linb::any_cast ( any &&  operand)
inline

If ValueType is MoveConstructible and isn't a lvalue reference, performs std::move(*any_cast<remove_reference_t<ValueType>>(&operand)), otherwise *any_cast<remove_reference_t<ValueType>>(&operand). Throws bad_any_cast on failure.

Definition at line 492 of file include/behaviortree_cpp/contrib/any.hpp.

◆ any_cast() [2/5]

template<typename ValueType >
ValueType linb::any_cast ( any operand)
inline

Performs *any_cast<remove_reference_t<ValueType>>(&operand), or throws bad_any_cast on failure.

Definition at line 477 of file include/behaviortree_cpp/contrib/any.hpp.

◆ any_cast() [3/5]

template<typename ValueType >
ValueType* linb::any_cast ( any operand)
inlinenoexcept

If operand != nullptr && operand->type() == typeid(ValueType), a pointer to the object contained by operand, otherwise nullptr.

Definition at line 525 of file include/behaviortree_cpp/contrib/any.hpp.

◆ any_cast() [4/5]

template<typename ValueType >
ValueType linb::any_cast ( const any operand)
inline

Performs *any_cast<add_const_t<remove_reference_t<ValueType>>>(&operand), or throws bad_any_cast on failure.

Definition at line 466 of file include/behaviortree_cpp/contrib/any.hpp.

◆ any_cast() [5/5]

template<typename ValueType >
const ValueType* linb::any_cast ( const any operand)
inlinenoexcept

If operand != nullptr && operand->type() == typeid(ValueType), a pointer to the object contained by operand, otherwise nullptr.

Definition at line 508 of file include/behaviortree_cpp/contrib/any.hpp.

◆ make_any() [1/2]

template<typename T , typename... Args>
any linb::make_any ( Args &&...  args)

Definition at line 545 of file include/behaviortree_cpp/contrib/any.hpp.

◆ make_any() [2/2]

template<typename T , typename U , typename... Args>
any linb::make_any ( std::initializer_list< U >  il,
Args &&...  args 
)

Definition at line 551 of file include/behaviortree_cpp/contrib/any.hpp.

◆ swap()

void linb::swap ( any lhs,
any rhs 
)
inlinenoexcept

Definition at line 539 of file include/behaviortree_cpp/contrib/any.hpp.



behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:10