CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
algorithm.hh File Reference
#include <algorithm>

Go to the source code of this file.

Namespaces

 CASM
 Main CASM namespace.
 

Functions

template<typename Iterator , typename T , typename BinaryCompare >
Iterator CASM::find (Iterator begin, Iterator end, const T &value, BinaryCompare q)
 Equivalent to std::find(begin, end, value), but with custom comparison. More...
 
template<typename Iterator , typename T >
Index CASM::find_index (Iterator begin, Iterator end, const T &value)
 Equivalent to std::distance(begin, std::find(begin, end, value)) More...
 
template<typename Iterator , typename T , typename BinaryCompare >
Index CASM::find_index (Iterator begin, Iterator end, const T &value, BinaryCompare q)
 Equivalent to std::distance(begin, find(begin, end, value, q)) More...
 
template<typename Iterator , typename UnaryPredicate >
Index CASM::find_index_if (Iterator begin, Iterator end, UnaryPredicate p)
 Equivalent to std::distance(begin, std::find_if(begin, end, p)) More...
 
template<typename Iterator , typename UnaryPredicate >
Index CASM::find_index_if_not (Iterator begin, Iterator end, UnaryPredicate q)
 Equivalent to std::distance(begin, std::find_if_not(begin, end, q)) More...
 
template<typename Container , typename T , typename BinaryCompare >
Index CASM::find_index (const Container &container, const T &value, BinaryCompare q)
 Equivalent to std::distance(container.begin(), find(container.begin(), container.end(), value,q)) More...
 
template<typename Container , typename T >
Index CASM::find_index (const Container &container, const T &value)
 Equivalent to std::distance(container.begin(), std::find(container.begin(), container.end(), value)) More...
 
template<typename Container , typename UnaryPredicate >
Index CASM::find_index_if (const Container &container, UnaryPredicate p)
 Equivalent to std::distance(container.begin(), std::find_if(container.begin(), container.end(), p)) More...
 
template<typename Container , typename UnaryPredicate >
Index CASM::find_index_if_not (const Container &container, UnaryPredicate q)
 Equivalent to std::distance(container.begin(), std::find_if_not(container.begin(), container.end(), p)) More...
 
template<typename Container , typename T >
bool CASM::contains (const Container &container, const T &value)
 Equivalent to container.end() != std::find(container.begin(), container.end(), value) More...
 
template<typename Container , typename T , typename BinaryCompare >
bool CASM::contains (const Container &container, const T &value, BinaryCompare q)
 Equivalent to container.end() != find(container.begin(), container.end(), value, q) More...
 
template<typename Container , typename UnaryPredicate >
bool CASM::contains_if (const Container &container, UnaryPredicate p)
 Equivalent to container.end() != std::find_if(container.begin(), container.end(), p) More...
 
template<typename Container , typename UnaryPredicate >
bool CASM::contains_if_not (const Container &container, UnaryPredicate q)
 Equivalent to container.end() != std::find_if_not(container.begin(), container.end(), q) More...