file
Tuple.hCnxTuple provides macros for declaring and decomposing tuples.
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 Tuple(...)
- Used to refer to a tuple type.
- #define DeclTuple(...)
- Used to declare a tuple type.
- #define DeclNamedTuple(...)
- Used to declare a tuple type with a unique name The first argument must be the unique name to use for this tuple type. Subsequent arguments should be the types held by the tuple.
- #define tuple_bind(self, ...)
- Decomposes the given tuple
self
into one or more of its members, in declared order Decomposesself
into one or more of its members, using the given names to refer to its members. The given names exist within the current scope. - #define scoped_tuple_bind(self, ...)
- Decomposes the given tuple
self
into one or more of its members, in declared order Decomposesself
into one or more of its members, using the given names to refer to its members. The given names are contained within a new scope. - #define ___DEFINE_TUPLE(...)
- Declares a tuple type.
- #define ___DEFINE_TUPLE_IMPL(...)
- Declares a tuple type.
- #define ___DEFINE_TUPLE_MEMBERS_IMPL(...)
- Declares the members of a tuple type.
- #define ___DEFINE_EMPTY_TUPLE
- Declares an empty tuple type.
- #define ___DEFINE_NAMED_TUPLE(...)
- Declares a named tuple type.
- #define ___DEFINE_NAMED_TUPLE_IMPL(...)
- Declares a named tuple type.
- #define ___DEFINE_EMPTY_NAMED_TUPLE(Name)
- Declares an empty named tuple type.
- #define ___TUPLE_BIND_IMPL(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_1(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_2(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_3(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_4(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_5(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_6(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_7(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_8(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_9(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_10(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_11(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___TUPLE_BIND_IMPL_12(self, N, ...)
- Decomposes
self
into one or more of its members. - #define ___SCOPED_TUPLE_BIND_IMPL(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_1(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_2(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_3(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_4(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_5(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_6(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_7(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_8(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_9(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_10(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_11(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope. - #define ___SCOPED_TUPLE_BIND_IMPL_12(self, N, ...)
- Decomposes
self
into one or more of its members, in a new scope.