Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 785 Bytes

do_max_length.md

File metadata and controls

28 lines (20 loc) · 785 Bytes

do_max_length

  • locale[meta header]
  • std[meta namespace]
  • codecvt[meta class]
  • function[meta id-type]
protected:
  virtual int do_max_length() const throw();  // (1) C++98
  virtual int do_max_length() const noexcept; // (1) C++11

概要

内部型の1文字への変換に必要な外部型の最大の長さを取得する。max_length()から呼び出される仮想関数である。

戻り値

任意の妥当な範囲[from, from_end)とstateTの値stateについて、do_length(state, from, from_end, 1)が返しうる最大の値。

特殊化codecvt<char, char, mbstate_t>::do_max_length()は1を返す。

バージョン

言語

  • C++98

関連項目