Replacement for std::any
that is not copyable. It allows to store non-copyable and even non-movable types.
Definition in file any_movable.hpp.
Go to the source code of this file.
#include <any>
#include <initializer_list>
#include <memory>
#include <type_traits>
#include <utility>
Classes | |
class | utils::AnyMovable |
Replacement for std::any that is not copyable. It allows to store non-copyable and even non-movable types. More... | |
class | utils::BadAnyMovableCast |
The exception that is thrown when AnyCast fails. More... | |
struct | utils::AnyMovable::HolderBase |
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
template<typename ValueType > | |
ValueType * | utils::AnyCast (AnyMovable *operand) noexcept |
template<typename ValueType > | |
const ValueType * | utils::AnyCast (const AnyMovable *operand) noexcept |
template<typename ValueType > | |
ValueType | utils::AnyCast (AnyMovable &operand) |
template<typename ValueType > | |
ValueType | utils::AnyCast (const AnyMovable &operand) |
template<typename ValueType > | |
ValueType | utils::AnyCast (AnyMovable &&operand) |