mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-01 05:24:47 +02:00
Add simple constructor for stateless slist_iterator
This commit is contained in:
@@ -65,10 +65,14 @@ class slist_iterator
|
||||
BOOST_INTRUSIVE_FORCEINLINE slist_iterator()
|
||||
{}
|
||||
|
||||
BOOST_INTRUSIVE_FORCEINLINE explicit slist_iterator(node_ptr nodeptr, const_value_traits_ptr traits_ptr)
|
||||
BOOST_INTRUSIVE_FORCEINLINE slist_iterator(node_ptr nodeptr, const_value_traits_ptr traits_ptr)
|
||||
: members_(nodeptr, traits_ptr)
|
||||
{}
|
||||
|
||||
BOOST_INTRUSIVE_FORCEINLINE explicit slist_iterator(node_ptr nodeptr)
|
||||
: members_(nodeptr, const_value_traits_ptr())
|
||||
{ BOOST_STATIC_ASSERT((stateful_value_traits == false)); }
|
||||
|
||||
BOOST_INTRUSIVE_FORCEINLINE slist_iterator(const slist_iterator &other)
|
||||
: members_(other.pointed_node(), other.get_value_traits())
|
||||
{}
|
||||
|
Reference in New Issue
Block a user