hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
visitor_apply_for_all.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_VISITOR_APPLY_FOR_ALL_HPP
7 #define IROHA_VISITOR_APPLY_FOR_ALL_HPP
8 
9 #include <boost/variant/static_visitor.hpp>
10 #include <string>
11 
12 namespace shared_model {
13  namespace detail {
14 
18  class ToStringVisitor : public boost::static_visitor<std::string> {
19  public:
20  template <typename InputType>
21  auto operator()(const InputType &operand) const {
22  return operand.toString();
23  }
24  };
25 
26  } // namespace detail
27 } // namespace shared_model
28 #endif // IROHA_VISITOR_APPLY_FOR_ALL_HPP
auto operator()(const InputType &operand) const
Definition: visitor_apply_for_all.hpp:21
Definition: visitor_apply_for_all.hpp:18
Definition: command_executor.hpp:12