The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
utils::detail::contains_impl< Container, Value > Struct Template Reference

A struct that exists to implement a generic wrapper for std::find. More...

#include <general.hpp>

Static Public Member Functions

static bool eval (const Container &container, const Value &value)
 

Detailed Description

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

A struct that exists to implement a generic wrapper for std::find.

Container should "look like" an STL container of Values.

Definition at line 44 of file general.hpp.

Member Function Documentation

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

Definition at line 45 of file general.hpp.

References gui2::event::find().

Referenced by utils::contains().


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