[Boost-bugs] [Boost C++ Libraries] #5991: find_ptr (find wrapper)

Subject: [Boost-bugs] [Boost C++ Libraries] #5991: find_ptr (find wrapper)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-07 13:14:52


#5991: find_ptr (find wrapper)
------------------------------------------------------+---------------------
 Reporter: Olaf van der Spek <olafvdspek@…> | Owner: joaquin
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: multi_index
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
------------------------------------------------------+---------------------
 Could you add a find wrapper to multi_index that returns value_type*
 instead of an iterator (and NULL if not found)?

 It'd allow code like:
 {{{
 if (auto i = c.find_ptr("key"))
 {
 }
 }}}

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