Files
cppdraft_translate/cppdraft/pair/piecewise.md
2025-10-25 03:02:53 +03:00

848 B

[pair.piecewise]

22 General utilities library [utilities]

22.3 Pairs [pairs]

22.3.5 Piecewise construction [pair.piecewise]

🔗

struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; inline constexpr piecewise_construct_t piecewise_construct{};

1

#

The struct piecewise_construct_t is an empty class type used as a unique type to disambiguate constructor and function overloading.

Specifically,pair has a constructor with piecewise_construct_t as the first argument, immediately followed by two arguments used for piecewise construction of the elements of the pair object.