Boost C++ Libraries Home Libraries People FAQ More

PrevUpHome

Function template find_ptr

boost::algorithm::find_ptr

Synopsis

// In header: <boost/algorithm/wrappers.hpp>


template<typename Container, typename Key> 
  const Container::value_type::second_type * 
  find_ptr(const Container & c, Key k);

Description

[Note] Note

: This is a wrapper around Container::find, with a useful interface. Suggested by Olaf van der Spek

Parameters:

c

The container to be searched

k

The key value to search with

Returns:

a pointer to the value matching the key in the container, or NULL if the key does not exist in the container.


PrevUpHome