vg
tools for working with variation graphs
Static Public Member Functions | List of all members
handlegraph::BoolReturningWrapper< Iteratee, Iterated, IterateeReturnType > Struct Template Reference

#include <iteratee.hpp>

Static Public Member Functions

static std::function< bool(const Iterated &)> wrap (const Iteratee &iteratee)
 

Detailed Description

template<typename Iteratee, typename Iterated, typename IterateeReturnType = decltype(std::declval<Iteratee>().operator()(std::declval<Iterated>()))>
struct handlegraph::BoolReturningWrapper< Iteratee, Iterated, IterateeReturnType >

This template has a static method that takes a callable on items and returns a wrapped version that returns the calable's returned bool, or true for void-returning callables.

Member Function Documentation

◆ wrap()

template<typename Iteratee , typename Iterated , typename IterateeReturnType = decltype(std::declval<Iteratee>().operator()(std::declval<Iterated>()))>
static std::function<bool(const Iterated&)> handlegraph::BoolReturningWrapper< Iteratee, Iterated, IterateeReturnType >::wrap ( const Iteratee &  iteratee)
inlinestatic

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