KiCad PCB EDA Suite
|
Classes | |
class | any |
A type-safe container of any type. More... | |
class | bad_any_cast |
Exception class thrown by a failed any_cast . More... | |
Functions | |
void | swap (any &x, any &y) noexcept |
Exchange the states of two any objects. | |
template<typename T , typename... Args> | |
std::enable_if_t< std::is_constructible_v< any, std::in_place_type_t< T >, Args... >, any > | make_any (Args &&... args) |
Create a any holding a T constructed from args... . | |
template<typename T , typename U , typename... Args> | |
std::enable_if_t< std::is_constructible_v< any, std::in_place_type_t< T >, std::initializer_list< U > &, Args... >, any > | make_any (std::initializer_list< U > il, Args &&... args) |
Create an any holding a T constructed from il and args... . | |
template<typename ValueType > | |
ValueType | any_cast (const any &any) |
Access the contained object. | |
template<typename ValueType > | |
ValueType | any_cast (any &any) |
Access the contained object. | |
template<typename ValueType > | |
ValueType | any_cast (any &&any) |
template<typename ValueType > | |
const ValueType * | any_cast (const any *any) noexcept |
Access the contained object. | |
template<typename ValueType > | |
ValueType * | any_cast (any *any) noexcept |
Variables | |
template<typename > | |
constexpr bool | is_in_place_type_v = false |
ValueType ki::any_cast | ( | any && | any | ) |
Definition at line 493 of file ki_any.h.
References any_cast().
ValueType ki::any_cast | ( | any & | any | ) |
Access the contained object.
ValueType | A reference or CopyConstructible type. |
any | The object to access. |
bad_any_cast | If any.type() != typeid(remove_reference_t<ValueType>) |
Definition at line 475 of file ki_any.h.
References any_cast().
|
noexcept |
Definition at line 569 of file ki_any.h.
References any_cast().
ValueType ki::any_cast | ( | const any & | any | ) |
Access the contained object.
ValueType | A const-reference or CopyConstructible type. |
any | The object to access. |
bad_any_cast | If any.type() != typeid(remove_reference_t<ValueType>) |
Definition at line 446 of file ki_any.h.
References any_cast().
Referenced by any_cast().
|
noexcept |
Access the contained object.
ValueType | The type of the contained object. |
any | A pointer to the object to access. |
any != nullptr && any.type() == typeid(ValueType)
, otherwise a null pointer. Definition at line 553 of file ki_any.h.
References any_cast().