library of assembled shared sources

http://lass.cocamware.com

Stde_select

functors to select element of std::pair or stde::triple More...


Data Structures

struct  lass::stde::select_1st< Pair >
 selects first element of std::pair or stde::triple and applies supplied operator on it More...
struct  lass::stde::select_2nd< Pair >
 selects second element of std::pair or stde::triple and applies supplied operator on it More...
struct  lass::stde::select_3rd< Triple >
 selects second element of std::pair or stde::triple and applies supplied operator on it More...


Detailed Description

functors to select element of std::pair or stde::triple

    typedef std::map<std::string, int> map_type;
    map_type a;
    a["one"] = 1;
    a["two"] = 2;
    a["three"] = 3;
    std::transform(a.begin(), a.end(), 
        std::ostream_iterator<map_type::key_type>(std::cout, " "),
        stde::select_1st<map_type::value_type>());

Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo