The Battle for Wesnoth  1.19.7+dev
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 52 of file general.hpp.

Member Function Documentation

◆ eval()

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

Definition at line 54 of file general.hpp.

References utils::find().

Referenced by utils::contains().


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