Home
last modified time | relevance | path

Searched defs:nullable_struct (Results 1 – 1 of 1) sorted by relevance

/system/utest/fit/
A Dnullable_tests.cpp18 struct nullable_struct { struct
19 int value = 0;
22 constexpr nullable_struct(int value) in nullable_struct() argument
24 constexpr explicit nullable_struct(decltype(nullptr)) in nullable_struct() function
29 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