18 #ifndef __H__OCULAR_UTILS_STRING_COMPOSER__H__
19 #define __H__OCULAR_UTILS_STRING_COMPOSER__H__
63 : m_IncompleteString(), m_Mutex()
70 template<
typename T,
typename... U>
71 std::string compose(T first, U... args)
77 m_IncompleteString.str(std::string());
78 m_IncompleteString << first;
80 internalCompose(args...);
81 result = m_IncompleteString.str();
92 template<
typename T,
typename... U>
93 void internalCompose(T first, U... last)
95 m_IncompleteString << first;
96 internalCompose(last...);
99 static void internalCompose()
105 std::stringstream m_IncompleteString;
117 #define OCULAR_STRING_COMPOSER Ocular::Utils::StringComposer().compose
Definition: StringComposer.hpp:58
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70