27 lines
848 B
Markdown
27 lines
848 B
Markdown
[pair.piecewise]
|
|
|
|
# 22 General utilities library [[utilities]](./#utilities)
|
|
|
|
## 22.3 Pairs [[pairs]](pairs#pair.piecewise)
|
|
|
|
### 22.3.5 Piecewise construction [pair.piecewise]
|
|
|
|
[ð](#lib:piecewise_construct_t)
|
|
|
|
`struct piecewise_construct_t {
|
|
explicit piecewise_construct_t() = default;
|
|
};
|
|
inline constexpr piecewise_construct_t piecewise_construct{};
|
|
`
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L1497)
|
|
|
|
The struct piecewise_construct_t is an empty class type
|
|
used as a unique type to disambiguate constructor and function overloading[.](#1.sentence-1)
|
|
|
|
Specifically,pair has a constructor with piecewise_construct_t as the
|
|
first argument, immediately followed by two <tuple> arguments used
|
|
for piecewise construction of the elements of the pair object[.](#1.sentence-2)
|