You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 line
403 B

  1. #pragma once
  2. #include "string_builder.h"
  3. namespace cppcore
  4. {
  5. /* string_builder */
  6. template<typename TArg>
  7. string_builder& string_builder::operator<<(TArg&& arg)
  8. {
  9. os << std::forward<TArg>(arg);
  10. return *this;
  11. }
  12. std::string string_builder::str() const
  13. { return os.str(); }
  14. string_builder::operator std::string() const
  15. { return str(); }
  16. }