>>380
basic_stringの場合
§21.3.4
4 The functions described in this clause can report two kinds of errors, each associated with a distinct exception:
? a length error is associated with exceptions of type length_error (19.1.4);
? an out-of-range error is associated with exceptions of type out_of_range (19.1.5).
4a For any string operation, if as a result of the operation, size() would exceed max_size() then the
operation throws length_error.