Skip to content

Commit a5ae576

Browse files
authored
Update concat_string.cc
1 parent b6d9fab commit a5ae576

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/0002.concatstring/concat_string.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <string>
1+
#include <fast_io_dsal/string.h>
22
#include <fast_io.h>
33
#include <version>
44

@@ -28,13 +28,13 @@ template <typename Func> inline benchmark_return benchmark(Func meth) {
2828

2929
inline auto color_concat(std::uint_least8_t r, std::uint_least8_t g,
3030
std::uint_least8_t b) {
31-
return ::fast_io::concat_std("Red: ", r, ", Green: ", g, ", Blue: ", b);
31+
return ::fast_io::concat_fast_io("Red: ", r, ", Green: ", g, ", Blue: ", b);//avoid using concat_std but using fast_io's string instead
3232
}
3333

3434
int main() {
3535
auto concat_time = benchmark(color_concat);
3636
using namespace fast_io::io;
3737
perrln("concat_string:", concat_time.timestamp, "s");
38-
print("fast_io::concat_std (total size: ", concat_time.total_size, ") took ",
38+
print("fast_io::concat_fast_io (total size: ", concat_time.total_size, ") took ",
3939
concat_time.timestamp, "s.\n");
4040
}

0 commit comments

Comments
 (0)