セマンティクスとパフォーマンスに関するいくつかの質問:
x = 0;
While (x < 10) {
std::cout << "Some text here to send to cout";
++x;
}
gcc 4.7 を使用しています。ストリーミングするテキストを std::move 内にラップする必要がありますか?
このような:
x = 0;
While (x < 10) {
std::cout << std::move("Some text here to send to cout");
++x;
}
そして、私が尋ねている間、このような場合、文字列を次のように静的にする方が良いですか:
x = 0;
While (x < 10) {
static const char* s = "Some text here to send to cout";
std::cout << s;
++x;
}