Proton  1.1.1
Make porting easy from Python to C++11
common

common container operations More...

Functions

template<typename T >
const detail::min_t< T >::item_t & proton::min (const T &v)
 smallest item.
template<typename T >
const detail::max_t< T >::item_t & proton::max (const T &v)
 largest item.
template<typename T , typename V >
bool proton::has (const T &x, V &&v)
 check if x has val.
template<typename T >
size_t proton::len (const T &v)
 get length.

Detailed Description

common container operations


Function Documentation

template<typename T , typename V >
bool proton::has ( const T &  x,
V &&  v 
)

check if x has val.

Parameters:
xthe container
vthe value
Returns:
true: has, false: not

Definition at line 231 of file base.hpp.

Referenced by proton::operator&=().