mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +02:00
Add forceinline to trivial cases
This commit is contained in:
@@ -167,7 +167,7 @@ class deque_iterator
|
||||
: m_cur(x.get_cur()), m_first(x.get_first()), m_last(x.get_last()), m_node(x.get_node())
|
||||
{}
|
||||
|
||||
deque_iterator(Pointer cur, Pointer first, Pointer last, index_pointer node) BOOST_NOEXCEPT_OR_NOTHROW
|
||||
BOOST_CONTAINER_FORCEINLINE deque_iterator(Pointer cur, Pointer first, Pointer last, index_pointer node) BOOST_NOEXCEPT_OR_NOTHROW
|
||||
: m_cur(cur), m_first(first), m_last(last), m_node(node)
|
||||
{}
|
||||
|
||||
|
@@ -69,11 +69,11 @@ struct select1st
|
||||
typedef FirstType type;
|
||||
|
||||
template<class T>
|
||||
const type& operator()(const T& x) const
|
||||
BOOST_CONTAINER_FORCEINLINE const type& operator()(const T& x) const
|
||||
{ return x.first; }
|
||||
|
||||
template<class T>
|
||||
type& operator()(T& x)
|
||||
BOOST_CONTAINER_FORCEINLINE type& operator()(T& x)
|
||||
{ return const_cast<type&>(x.first); }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user