file
TypeTraits.hThis module compile-time facilities for checking traits of arbitrary types and of the types of arbitrary values.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Defines
- #define CNX_TYPE_TRAITS
- definitions related to Type Traits
- #define cnx_types_equal(type1, type2)
- Determines if the two types are the same.
- #define cnx_types_equal_v(type, value)
- Determines if the type of
value
is the same as the given type. - #define cnx_types_equal_vs(value1, value2)
- Determines if the type of
value1
is the same as the type ofvalue2
- #define cnx_type_as_string(T)
- Converts the given type to a string literal.
- #define cnx_is_const_t(T, value)
- Determines if
value
, of unqualified typeT
is const.