[Boost-bugs] [Boost C++ Libraries] #5929: empty(), data(), size()

Subject: [Boost-bugs] [Boost C++ Libraries] #5929: empty(), data(), size()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-23 10:06:00


#5929: empty(), data(), size()
----------------------------------+-----------------------------------------
 Reporter: olafvdspek@… | Owner: daniel_frey
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: operators
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 While not being operators, those functions can be defined in terms of
 others.
 empty(): end() == begin()
 data(): empty() ? NULL : &*begin()
 size(): end() - begin()

 Could those be added to the operators lib?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5929>
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:07 UTC