std::any::
reset
From cppreference.com
<
cpp
|
utility
|
any
C++
Language
Standard Library Headers
Freestanding and hosted implementations
Named requirements
Language support library
Concepts library
(C++20)
Diagnostics library
Utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Localizations library
Input/output library
Filesystem library
(C++17)
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Technical Specifications
Utilities library
Language support
Type support
(basic types, RTTI, type traits)
Library feature-test macros
(C++20)
Dynamic memory management
Program utilities
Error handling
Coroutine support
(C++20)
Variadic functions
launder
(C++17)
initializer_list
(C++11)
source_location
(C++20)
Three-way comparison
(C++20)
three_way_comparable
three_way_comparable_with
(C++20)
(C++20)
strong_ordering
(C++20)
weak_ordering
(C++20)
partial_ordering
(C++20)
common_comparison_category
(C++20)
compare_three_way_result
(C++20)
compare_three_way
(C++20)
strong_order
(C++20)
weak_order
(C++20)
partial_order
(C++20)
compare_strong_order_fallback
(C++20)
compare_weak_order_fallback
(C++20)
compare_partial_order_fallback
(C++20)
is_eq
is_neq
is_lt
is_lteq
is_gt
is_gteq
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
General utilities
Date and time
Function objects
Formatting library
(C++20)
bitset
hash
(C++11)
integer_sequence
(C++14)
Relational operators
(deprecated in C++20)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Integer comparison functions
cmp_equal
cmp_not_equal
cmp_less
cmp_greater
cmp_less_than
cmp_greater_than
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
in_range
(C++20)
Swap and type operations
swap
ranges::swap
(C++20)
exchange
(C++14)
declval
(C++11)
forward
(C++11)
move
(C++11)
move_if_noexcept
(C++11)
as_const
(C++17)
Common vocabulary types
pair
tuple
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
optional
(C++17)
any
(C++17)
variant
(C++17)
Elementary string conversions
to_chars
(C++17)
from_chars
(C++17)
chars_format
(C++17)
std::any
Member functions
any::any
any::~any
any::operator=
Modifiers
any::emplace
any::reset
any::swap
Observers
any::has_value
any::type
Non-member functions
swap
(std::any)
any_cast
make_any
void
reset
(
)
noexcept
;
(since C++17)
If not empty, destroys the contained object.
Parameters
(none)
Return value
(none)
See also
has_value
checks if object holds a value
(public member function)