KSS Utility
C++ general utilities
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
containerutil.hpp File Reference

Miscellaneous utilities related to containers. More...

#include <algorithm>
#include <functional>

Go to the source code of this file.

Namespaces

 kss
 All Klassen Software Solutions libraries begin with this namespace.
 
 kss::util
 General utility methods that don't fit into any of the other categories.
 
 kss::util::containers
 Containers and items related to containers.
 

Functions

template<class Container >
bool kss::util::containers::contains (const Container &c, const typename Container::key_type &a)
 
template<class Container >
bool kss::util::containers::hasAtLeast (const Container &c, typename Container::size_type sz) noexcept
 
template<class Container >
bool kss::util::containers::isFull (const Container &c) noexcept
 
template<class Container , class UnaryPredicate >
void kss::util::containers::eraseIf (Container &c, UnaryPredicate pred)
 
template<class Container , class UnaryPredicate >
Container::iterator kss::util::containers::findIf (Container &c, UnaryPredicate pred)
 
template<class Container , class UnaryPredicate >
Container::const_iterator kss::util::containers::findIf (const Container &c, UnaryPredicate pred)
 
template<class Container , class UnaryPredicate >
bool kss::util::containers::containsIf (const Container &c, UnaryPredicate pred)
 
template<class Vector >
void kss::util::containers::apply (Vector &vec, const std::function< typename Vector::value_type(size_t, const typename Vector::value_type &)> &fn)
 

Detailed Description

Miscellaneous utilities related to containers.

Definition in file containerutil.hpp.