replace.hpp File Reference
#include <atria/xform/transducer/map.hpp>
#include <atria/prelude/tuplify.hpp>
#include <atria/meta/utils.hpp>
#include <functional>

Go to the source code of this file.

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::xform
 Efficient and flexible C++ implementation of transducers.
 

Functions

template<typename TableT >
auto replace (TableT &&table) -> decltype(map(detail::lookup_or_key< estd::decay_t< TableT > >
 Similar to clojure.core/replace$1. More...
 
template<typename TableT >
auto replace_all (TableT &&table) -> decltype(map(detail::lookup_default< estd::decay_t< TableT > >
 Transducer that replaces all elements by table[tuplify(inputs)] More...
 
template<typename TableT >
auto replace_all_safe (TableT &&table) -> decltype(map(detail::lookup_safe< estd::decay_t< TableT > >
 Transducer that replaces all elements by table.at(tuplify(inputs)) More...
 
Fork me on GitHub