include/Cnx/mpl/PPTuple.h file

PPTuple provides various macros for metaprogramming with tuple-like constructs.

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 IS_TUPLE(x)
Determines if x is a tuple A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.
#define IS_NOT_TUPLE(x)
Determines if x is NOT a tuple A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.
#define EXPAND_TUPLE(x)
Expands the given tuple into a comma separated list of elements A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.
#define IS_TWO_TUPLES(x)
Determines if x is two tuples A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.
#define IS_NOT_TUPLE_FAST(x)
Determines if x is NOT a tuple A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.

Define documentation

#define IS_TWO_TUPLES(x)

Determines if x is two tuples A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.

Parameters
x - The token string to determine if it is two tuples
Returns TRUE if x is two tuples, otherwise FALSE

#define IS_NOT_TUPLE_FAST(x)

Determines if x is NOT a tuple A tuple is a token string of the form (x, y, z, ...) where x, y, z, etc. are valid token strings.

Parameters
x - The token string to determine if it is NOT a tuple
Returns TRUE if x is NOT a tuple, otherwise FALSE