AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Ring buffer implementation in c3/10/2024 If it throws, the guarantee is waived and the effects are unspecified. In overload (1), if T's move constructor is not noexcept and T is not CopyInsertable into *this, vector will use the throwing move constructor. If an exception is thrown, this function has no effect ( strong exception guarantee).Īlthough not explicitly specified, std::length_error is thrown if the capacity required by the new vector would exceed max_size(). Additional complexity possible due to reallocation if capacity is less than count Exceptions Linear in the difference between the current size and count. T must meet the requirements of CopyInsertable in order to use overload (2).
0 Comments
Read More
Leave a Reply. |