fipa_acl  1.4
Classes | Public Types | Public Member Functions | List of all members
concatStringsWithSeparatorImpl Struct Reference

#include <grammar_common.h>

Classes

struct  result
 

Public Types

typedef std::string result_type
 

Public Member Functions

template<typename T , typename U , typename V >
result_type operator() (T arg0, U arg1, V arg2) const
 

Detailed Description

Concatenation of two strings as 'lazy' implementation for boost spirit using a dedicated separation character

Definition at line 177 of file grammar_common.h.

Member Typedef Documentation

Definition at line 179 of file grammar_common.h.

Member Function Documentation

template<typename T , typename U , typename V >
result_type concatStringsWithSeparatorImpl::operator() ( arg0,
arg1,
arg2 
) const
inline

Definition at line 188 of file grammar_common.h.

189  {
190  if(arg0.empty())
191  {
192  return arg1;
193  } else {
194  arg0 += arg2;
195  arg0 += arg1;
196  return arg0;
197  }
198  }

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