Bayes Filters Library
|
Classes | |
class | any |
The class any describes a type-safe container for single values of any type. More... | |
class | bad_any_cast |
Defines a type of object to be thrown by the value-returning forms of blf::any::any_cast on failure. More... | |
Functions | |
void | swap (any &lhs, any &rhs) noexcept |
Overloads the std::swap algorithm for std::any. More... | |
template<typename ValueType > | |
ValueType * | any_cast (any *operand) noexcept |
Performs type-safe access to the contained object. More... | |
template<typename ValueType > | |
const ValueType * | any_cast (const any *operand) noexcept |
Performs type-safe access to the contained object. More... | |
template<typename ValueType > | |
ValueType | any_cast (any &operand) |
Performs type-safe access to the contained object. More... | |
template<typename ValueType > | |
ValueType | any_cast (const any &operand) |
Performs type-safe access to the contained object. More... | |
template<typename ValueType > | |
ValueType | any_cast (any &&operand) |
Performs type-safe access to the contained object. More... | |
|
inline |
ValueType bfl::any::any_cast | ( | any & | operand | ) |
Performs type-safe access to the contained object.
Throws blf::any::bad_any_cast if the typeid of the requested ValueType does not match that of the contents of operand.
operand | target any object |
Definition at line 382 of file any.h.
References bfl::any::any::type().
|
noexcept |
Performs type-safe access to the contained object.
Throws blf::any::bad_any_cast if the typeid of the requested ValueType does not match that of the contents of operand.
operand | target any object |
Definition at line 352 of file any.h.
References bfl::any::any::holder< ValueType >::held.
|
inline |
|
inlinenoexcept |
Overloads the std::swap algorithm for std::any.
Swaps the content of two any objects by calling lhs.swap(rhs).
lhs | objects to swap |
rhs | objects to swap |
Definition at line 317 of file any.h.
References bfl::any::any::swap().
Referenced by bfl::any::any::swap().