1 #ifndef CBE__impl__buildMsg_h__
2 #define CBE__impl__buildMsg_h__
10 template <
typename T,
typename... Ts>
11 void buildMsgImpl(std::ostream& os, T&& arg, Ts&&... restArgs);
16 template <
typename T,
typename... Ts>
17 std::ostream& buildMsg(std::ostream& os, T&& arg, Ts&&... restArgs) {
18 impl::buildMsgImpl(os, std::forward<T>(arg), std::forward<Ts>(restArgs)...);
22 template <
typename T,
typename... Ts>
23 typename std::enable_if<!std::is_base_of<std::ostream,
24 typename std::remove_reference<T>::type
25 >::value, std::string>::type
26 buildMsg(T&& arg, Ts&&... restArgs) {
27 std::ostringstream oss;
28 buildMsg(oss , std::forward<T>(arg), std::forward<Ts>(restArgs)...);
34 void buildMsgImpl(std::ostream&);
36 template <
typename T,
typename... Ts>
37 void buildMsgImpl(std::ostream& os, T&& arg, Ts&&... restArgs) {
38 os << std::forward<T>(arg);
39 buildMsgImpl(os, std::forward<Ts>(restArgs)...);
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22