@@ -615,27 +615,24 @@ struct pair {
615615
616616 // pair constructors are explicit so we don't accidentally call this ctor when
617617 // we don't have to.
618- explicit constexpr pair (std::pair<T1, T2> const & o) noexcept (
619- noexcept (T1(std::declval<T1 const &>())) &&
620- noexcept (T2(std::declval<T2 const &>())))
618+ explicit constexpr pair (std::pair<T1, T2> const & o) noexcept (noexcept (
619+ T1 (std::declval<T1 const &>())) && noexcept (T2(std::declval<T2 const &>())))
621620 : first(o.first), second(o.second) {}
622621
623622 // pair constructors are explicit so we don't accidentally call this ctor when
624623 // we don't have to.
625- explicit constexpr pair (std::pair<T1, T2>&& o) noexcept (
626- noexcept (T1(std::move(std::declval<T1&&>()))) &&
627- noexcept (T2(std::move(std::declval<T2&&>()))))
624+ explicit constexpr pair (std::pair<T1, T2>&& o) noexcept (noexcept (T1(std::move(
625+ std::declval<T1&&>()))) && noexcept (T2(std::move(std::declval<T2&&>()))))
628626 : first(std::move(o.first)), second(std::move(o.second)) {}
629627
630- constexpr pair (T1&& a, T2&& b) noexcept (
631- noexcept (T1(std::move(std::declval<T1&&>()))) &&
632- noexcept (T2(std::move(std::declval<T2&&>()))))
628+ constexpr pair (T1&& a, T2&& b) noexcept (noexcept (T1(std::move(
629+ std::declval<T1&&>()))) && noexcept (T2(std::move(std::declval<T2&&>()))))
633630 : first(std::move(a)), second(std::move(b)) {}
634631
635632 template <typename U1, typename U2>
636633 constexpr pair (U1&& a, U2&& b) noexcept (
637- noexcept (T1(std::forward<U1>(std::declval<U1&&>()))) &&
638- noexcept ( T2(std::forward<U2>(std::declval<U2&&>()))))
634+ noexcept (T1(std::forward<U1>(std::declval<U1&&>()))) && noexcept (
635+ T2 (std::forward<U2>(std::declval<U2&&>()))))
639636 : first(std::forward<U1>(a)), second(std::forward<U2>(b)) {}
640637
641638 template <typename ... U1, typename ... U2>
@@ -658,17 +655,13 @@ struct pair {
658655
659656 // constructor called from the std::piecewise_construct_t ctor
660657 template <typename ... U1, size_t ... I1, typename ... U2, size_t ... I2>
661- pair (
662- std::tuple<U1...>& a, std::tuple<U2...>& b,
663- ROBIN_HOOD_STD::index_sequence<I1...> /* unused*/ ,
664- ROBIN_HOOD_STD::index_sequence<
665- I2...> /* unused*/ ) noexcept (noexcept (T1(std::
666- forward<U1>(std::get<I1>(
667- std::declval<std::tuple<
668- U1...>&>()))...)) &&
669- noexcept (T2(std::forward<U2>(std::get<I2>(
670- std::declval<
671- std::tuple<U2...>&>()))...)))
658+ pair (std::tuple<U1...>& a, std::tuple<U2...>& b, ROBIN_HOOD_STD::index_sequence<I1...> /* unused*/ , ROBIN_HOOD_STD::index_sequence<I2...> /* unused*/ ) noexcept (
659+ noexcept (T1(std::forward<U1>(std::get<I1>(
660+ std::declval<std::tuple<
661+ U1...>&>()))...)) && noexcept (T2(std::
662+ forward<U2>(std::get<I2>(
663+ std::declval<std::tuple<
664+ U2...>&>()))...)))
672665 : first(std::forward<U1>(std::get<I1>(a))...),
673666 second(std::forward<U2>(std::get<I2>(b))...) {
674667 // make visual studio compiler happy about warning about unused a & b.
@@ -705,8 +698,9 @@ inline constexpr bool operator!=(pair<A, B> const& x, pair<A, B> const& y) {
705698template <typename A, typename B>
706699inline constexpr bool
707700operator <(pair<A, B> const & x, pair<A, B> const & y) noexcept (
708- noexcept (std::declval<A const &>() < std::declval<A const &>()) &&
709- noexcept (std::declval<B const &>() < std::declval<B const &>())) {
701+ noexcept (std::declval<A const &>() <
702+ std::declval<A const &>()) && noexcept (std::declval<B const &>() <
703+ std::declval<B const &>())) {
710704 return x.first < y.first || (!(y.first < x.first ) && x.second < y.second );
711705}
712706template <typename A, typename B>
@@ -1552,8 +1546,8 @@ class Table
15521546 // we can ignore it.
15531547 explicit Table (
15541548 size_t ROBIN_HOOD_UNUSED (bucket_count) /* unused*/ , const Hash& h = Hash{},
1555- const KeyEqual& equal = KeyEqual{}) noexcept ( noexcept (Hash(h)) &&
1556- noexcept (KeyEqual(equal)))
1549+ const KeyEqual& equal =
1550+ KeyEqual{}) noexcept ( noexcept (Hash(h)) && noexcept (KeyEqual(equal)))
15571551 : WHash(h), WKeyEqual(equal) {
15581552 ROBIN_HOOD_TRACE (this )
15591553 }
0 commit comments