std::string — small string optimization and swap

后端 未结 1 1451
刺人心
刺人心 2020-12-19 00:45

From N3290, [container.requirements.general]:

The expression a.swap(b), for containers a and b of a standard container type other than

相关标签:
1条回答
  • 2020-12-19 01:11

    (Reposting from comment)

    std::string is not a container – the fact that basic_string is not described in the Containers library chapter (§23) of the FDIS is a good clue. ;-]

    0 讨论(0)
提交回复
热议问题