VCCC  2024.05
VisualCamp Common C++ library
nullopt_t.h
Go to the documentation of this file.
1 # /*
2 # * Created by YongGyu Lee on 2021/05/23.
3 # */
4 #
5 # ifndef VCCC_OPTIONAL_NULLOPT_T_H_
6 # define VCCC_OPTIONAL_NULLOPT_T_H_
7 
8 namespace vccc {
9 
12 
19 struct nullopt_t {
20  constexpr explicit nullopt_t(int) {}
21 };
22 
23 constexpr nullopt_t nullopt{0};
24 
26 
27 } // namespace vccc
28 
29 # endif // VCCC_OPTIONAL_NULLOPT_T_H_
constexpr nullopt_t nullopt
Definition: nullopt_t.h:23
Definition: directory.h:12
indicator of optional type with uninitialized state
Definition: nullopt_t.h:19
constexpr nullopt_t(int)
Definition: nullopt_t.h:20