MCPcopy Create free account
hub / github.com/ETLCPP/etl / Key

Class Key

test/test_const_set_constexpr.cpp:47–62  ·  view source on GitHub ↗

The key type

Source from the content-addressed store, hash-verified

45 // The key type
46 //*************************************************************************
47 struct Key
48 {
49 // Default constructor
50 constexpr Key()
51 : k(0)
52 {
53 }
54
55 // Construct from char key
56 constexpr explicit Key(char k_)
57 : k(k_)
58 {
59 }
60
61 char k;
62 };
63
64 // Less-than operator for Key < Key
65 constexpr bool operator<(const Key& lhs, const Key& rhs) noexcept

Callers 1

TESTFunction · 0.70

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.56