Make segduo convertible from another segduo and activate the dual random-access optimization.

This commit is contained in:
Ion Gaztañaga
2026-04-26 00:40:59 +02:00
parent 4d407c8282
commit 1daeb0b488
@@ -48,7 +48,12 @@ struct segduo
T2 second;
BOOST_CONTAINER_FORCEINLINE segduo() {}
BOOST_CONTAINER_FORCEINLINE segduo(const T1 &f, const T2 &s) : first(f), second(s) {}
template<class U1, class U2>
BOOST_CONTAINER_FORCEINLINE segduo(const U1 &f, const U2 &s) : first(f), second(s) {}
template<class U1, class U2>
BOOST_CONTAINER_FORCEINLINE segduo(const segduo<U1, U2> &sd) : first(sd.first), second(sd.second) {}
};
struct unreachable_sentinel_t
@@ -297,4 +302,10 @@ struct deepest_local_iterator
//#define BOOST_CONTAINER_DISABLE_MULTI_SEGMENTED_ALGO
//#define BOOST_CONTAINER_SEGMENTED_DISABLE_DUAL_RA_OPTIMIZATION
#if !defined(BOOST_CONTAINER_SEGMENTED_DISABLE_DUAL_RA_OPTIMIZATION)
#define BOOST_CONTAINER_SEGMENTED_ENABLE_DUAL_RA_OPTIMIZATION
#endif
#endif // BOOST_CONTAINER_EXPERIMENTAL_SEGMENTED_ITERATOR_TRAITS_HPP