summaryrefslogtreecommitdiff
path: root/boost/container/static_vector.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/container/static_vector.hpp')
-rw-r--r--boost/container/static_vector.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/boost/container/static_vector.hpp b/boost/container/static_vector.hpp
index 21168cbf96..4a341c383c 100644
--- a/boost/container/static_vector.hpp
+++ b/boost/container/static_vector.hpp
@@ -113,6 +113,8 @@ class static_vector
template<class U, std::size_t OtherCapacity>
friend class static_vector;
+ public:
+ typedef container_detail::static_storage_allocator<Value, Capacity> allocator_type;
#endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
public:
@@ -252,6 +254,19 @@ public:
: base_t(other)
{}
+ BOOST_CONTAINER_FORCEINLINE static_vector(static_vector const& other, const allocator_type &)
+ : base_t(other)
+ {}
+
+ BOOST_CONTAINER_FORCEINLINE static_vector(BOOST_RV_REF(static_vector) other, const allocator_type &)
+ BOOST_NOEXCEPT_IF(boost::container::container_detail::is_nothrow_move_constructible<value_type>::value)
+ : base_t(BOOST_MOVE_BASE(base_t, other))
+ {}
+
+ BOOST_CONTAINER_FORCEINLINE explicit static_vector(const allocator_type &)
+ : base_t()
+ {}
+
//! @pre <tt>other.size() <= capacity()</tt>.
//!
//! @brief Constructs a copy of other static_vector.