tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
nullopt.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_OPTIONAL_NULLOPT_HPP
4#define TETL_OPTIONAL_NULLOPT_HPP
5
6namespace etl {
7
13struct nullopt_t {
14 explicit constexpr nullopt_t(int /*unused*/) { }
15};
16
21inline constexpr auto nullopt = etl::nullopt_t{0};
22
23} // namespace etl
24
25#endif // TETL_OPTIONAL_NULLOPT_HPP
constexpr auto nullopt
etl::nullopt is a constant of type etl::nullopt_t that is used to indicate optional type with uniniti...
Definition nullopt.hpp:21
Definition adjacent_find.hpp:8
etl::nullopt_t is an empty class type used to indicate optional type with uninitialized state....
Definition nullopt.hpp:13
constexpr nullopt_t(int)
Definition nullopt.hpp:14