std::span::
empty
From cppreference.com
<
cpp
|
container
|
span
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
Containers library
array
(C++11)
vector
deque
forward_list
(C++11)
list
set
multiset
map
multimap
unordered_set
(C++11)
unordered_multiset
(C++11)
unordered_map
(C++11)
unordered_multimap
(C++11)
stack
queue
priority_queue
span
(C++20)
std::span
Member functions
span::span
span::operator=
Element access
span::operator[]
span::operator()
span::data
Iterators
span::begin
span::cbegin
span::end
span::cend
span::rbegin
span::crbegin
span::rend
span::crend
Observers
span::empty
span::size
span::size_bytes
Subviews
span::first
span::last
span::subspan
Non-member functions
as_bytes
as_writable_bytes
Non-member constant
dynamic_extent
Deduction guides
constexpr
bool
empty
(
)
const
noexcept
;
Checks if the span is empty.
Return value
true
if the span is empty (i.e.,
size
(
)
==
0
);
false
otherwise.
See also
size
returns the number of elements in the sequence
(public member function)