Subject: [Boost-bugs] [Boost C++ Libraries] #12767: Make value-initialized iterators of intrusive containers comparable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-18 00:30:04
#12767: Make value-initialized iterators of intrusive containers comparable
------------------------------+------------------------
Reporter: fdegros@⦠| Owner: igaztanaga
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: intrusive
Version: Boost 1.63.0 | Severity: Problem
Keywords: |
------------------------------+------------------------
Can value-initialized iterators of intrusive containers be compared?
For example, is the following code valid and well-defined?
{{{
using MyList = boost::intrusive::list<MyNode>;
using It = MyList::iterator;
It a = It();
It b = It();
assert(a == b);
}}}
This property is useful when it comes to returning empty ranges without
having to create a dummy empty container.
If intrusive containers already support this property, then it would be
good to explicitly mention it in the documentation. If not, I would like
to add it as a feature request.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12767> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC