Searched defs:nullable_struct (Results 1 – 1 of 1) sorted by relevance
18 struct nullable_struct { struct19 int value = 0;22 constexpr nullable_struct(int value) in nullable_struct() argument24 constexpr explicit nullable_struct(decltype(nullptr)) in nullable_struct() function29 constexpr int get() const { return value; } in get()30 constexpr int increment() { return ++value; } in increment()32 constexpr bool operator==(decltype(nullptr)) const { return value == -1; } in operator ==()33 constexpr bool operator==(const nullable_struct& other) const { return value == other.value; } in operator ==()34 constexpr bool operator!=(const nullable_struct& other) const { return value != other.value; } in operator !=()38 nullable_struct& operator=(decltype(nullptr)) { in operator =()
Completed in 4 milliseconds