Follow us on Twitter and LinkedIn to get the latest updates from the dev team!
Represents a tuple with ownership semantics (owns all the data it contains)
Constructors
Constructors for Tuple objects.
Construct an empty Tuple.
Construct a n-Tuple from an array of variants.
Construct a Tuple from a TupleRef.
Constructors from variants
Constructors from ampl::Variant objects.
Construct tuples from variants.
v1 – First element
v2 – Second element
v3 – Third element
v4 – Fourth element
Public Functions
Construct a tuple from an internal struct (infrastructure)
Get access to the inner immutable object (infrastructure).
Get the number of Elements in this tuple.
Return a string representation of this tuple.
All elements are formatted as in BasicVariant::toString and comma separated. An empty tuple is returned as “()”.
Accessor for elements of the tuple.
Public Static Functions
Join two tuples together and forms a new one copying all data.
Not owning Tuple.
A public typedef of BasicTuple without ownership semantics. It can be used both as a return type when the ownership semantics is not needed (e.g. returning a reference to a tuple stored in a container) and as an argument type to provide implicit conversions and reduce the number of required overloads.
previous
Runnable
next
BasicVariant