cppreference.com
Search
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::experimental::any::
empty
From cppreference.com
<
cpp
|
experimental
|
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
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
[edit]
Technical specifications
Filesystem library
(filesystem TS)
Library fundamentals
(library fundamentals TS)
Library fundamentals 2
(library fundamentals 2 TS)
Extensions for parallelism
(parallelism TS)
Extensions for parallelism 2
(parallelism TS v2)
Extensions for concurrency
(concurrency TS)
Concepts
(concepts TS)
Ranges
(ranges TS)
Special mathematical functions
(special math TR)
[edit]
Library fundamentals
experimental::optional
experimental::any
experimental::basic_string_view
experimental::sample
experimental::shared_ptr
experimental::weak_ptr
experimental::apply
experimental::invocation_type
experimental::raw_invocation_type
experimental::search
experimental::default_searcher
experimental::make_default_searcher
experimental::boyer_moore_searcher
experimental::make_boyer_moore_searcher
experimental::boyer_moore_horspool_searcher
experimental::make_boyer_moore_horspool_searcher
type-erased and polymorphic allocators
variable templates for type traits
[edit]
std::experimental::any
Member functions
any::any
any::operator=
Modifiers
any::clear
any::swap
Observers
any::empty
any::type
Non-member functions
swap
(std::experimental::any)
any_cast
[edit]
bool
empty
(
)
const
noexcept
;
(library fundamentals TS)
Checks whether the object contains a value.
[
edit
]
Parameters
(none)
[
edit
]
Return value
true
if instance is empty, otherwise
false
.