C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_6_0::replace_with_smaller< State, Operation > Struct Template Reference

This is our "inserter." It really just replaces instead of inserting, though. More...

#include <exercise-6-0.hpp>

Public Types

typedef Operation operation
 
typedef State state
 

Detailed Description

template<typename State = no_type, typename Operation = find_smaller<_, _>>
struct exercise_6_0::replace_with_smaller< State, Operation >

This is our "inserter." It really just replaces instead of inserting, though.

Template Parameters
StateResult of the last thing...
Operationfind_smaller(State, current_item)

Definition at line 88 of file exercise-6-0.hpp.

Member Typedef Documentation

◆ operation

template<typename State = no_type, typename Operation = find_smaller<_, _>>
typedef Operation exercise_6_0::replace_with_smaller< State, Operation >::operation

Definition at line 90 of file exercise-6-0.hpp.

◆ state

template<typename State = no_type, typename Operation = find_smaller<_, _>>
typedef State exercise_6_0::replace_with_smaller< State, Operation >::state

Definition at line 91 of file exercise-6-0.hpp.


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