strong_type 1
Create new distinct strong types and add the desired features to them. strong::type<int, struct int1> is a simple handle of type int. strong::type<int struct int2> is a distinct type with identical behaviour. strong::type<int, struct int3, strong::regular, strong::ordered> is another 'int' that can be default constructed and compared with ==,!=,<,<=,>,>=. Many more such manipulators are available.
Tags | c++ types type-safety |
---|---|
License | BSL |
State | initial |