The Battle for Wesnoth  1.19.14+dev
Namespaces | Functions
utils::ranges Namespace Reference

Conveniences wrapper for range algorithms. More...

Namespaces

 implementation
 

Functions

template<typename Container , typename Value , typename Projection = implementation::identity>
auto find (Container &container, const Value &value, const Projection &projection={})
 

Detailed Description

Conveniences wrapper for range algorithms.

Todo:
C++20: use std::ranges

Function Documentation

◆ find()

template<typename Container , typename Value , typename Projection = implementation::identity>
auto utils::ranges::find ( Container &  container,
const Value &  value,
const Projection &  projection = {} 
)