Boost.Hana: boost::hana::pair< First, Second > Struct Template Reference
Boost , ,
Boost.Hana
1.0.1
Your standard library for metaprogramming
Общий контейнер для двух элементов.
<hana::pair>концептуально то же самое, что и<std::pair>. Однако<hana::pair>автоматически сжимает хранилище пустых типов, и в результате у него нет членов<.first>и<.second>. Вместо этого необходимо использовать функции<hana::first>и<hana::second>для доступа к элементам пары.
Modeled concepts
Comparable Две пары(x, y)и '(x', y')are equal if and only if bothx == x'andy == y'.
// Авторское право Louis Dionne 2013-2016
// Распространяется под лицензией Boost Software License, версия 1.0.
// (См. сопроводительный файл LICENSE.md или копию на http://boost.org/LICENSE_1_0.txt)
Initialize both elements of the pair by perfect-forwarding the corresponding argument. Only exists when both arguments are implicitly-convertible to the corresponding element of the pair.
Copy-initialize a pair from another pair. Only exists when both elements of the source pair are implicitly convertible to the corresponding element of the constructed pair.
Move-initialize a pair from another pair. Only exists when both elements of the source pair are implicitly convertible to the corresponding element of the constructed pair.
Assign a pair to another pair. Only exists when both elements of the destination pair are assignable from the corresponding element in the source pair.
Move-assign a pair to another pair. Only exists when both elements of the destination pair are move-assignable from the corresponding element in the source pair.
Статья Boost.Hana: boost::hana::pair< First, Second > Struct Template Reference раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.