Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近、次のようなコードに遭遇しました。
std::string myString = "test"; boost::format fmt("%s"); fmt % myString;
ここで (2 番目の) % 演算子は何をしていますか?
編集:
最終結果は理解できましたが、 % 演算子をこのように使用する方法の定義が見つかりませんでした。
% 演算子の正確な意味を説明する例を誰か提供できますか?