The Battle for Wesnoth  1.19.0-dev
Static Public Member Functions | List of all members
utils::detail::contains_impl< Container, typename Container::key_type > Struct Template Reference

A struct that exists to implement a generic wrapper for the find() member of associative containers. More...

#include <general.hpp>

Static Public Member Functions

static bool eval (const Container &container, const typename Container::key_type &value)
 

Detailed Description

template<typename Container>
struct utils::detail::contains_impl< Container, typename Container::key_type >

A struct that exists to implement a generic wrapper for the find() member of associative containers.

Container should "look like" an STL associative container.

Definition at line 64 of file general.hpp.

Member Function Documentation

◆ eval()

template<typename Container >
static bool utils::detail::contains_impl< Container, typename Container::key_type >::eval ( const Container &  container,
const typename Container::key_type &  value 
)
inlinestatic

Definition at line 66 of file general.hpp.


The documentation for this struct was generated from the following file: