tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
full.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_ITERATOR_FULL_HPP
4#define TETL_ITERATOR_FULL_HPP
5
8
9namespace etl {
10
13template <typename C>
14constexpr auto full(C const& c) noexcept(noexcept(c.full())) -> decltype(c.full())
15{
16 return c.full();
17}
18
20template <typename T, size_t N>
21constexpr auto full(T (&array)[N]) noexcept -> bool
22{
24 return true;
25}
26
27} // namespace etl
28
29#endif // TETL_ITERATOR_FULL_HPP
constexpr auto full(C const &c) noexcept(noexcept(c.full())) -> decltype(c.full())
Returns whether the given container is full.
Definition full.hpp:14
Definition adjacent_find.hpp:8
constexpr auto ignore_unused(Types &&...) -> void
Explicitly ignore arguments or variables.
Definition ignore_unused.hpp:17
A container that encapsulates fixed size arrays.
Definition array.hpp:48