Common Library  0.9.5
ExceptionNotPositiveLength< T > クラステンプレート

長さがゼロ以下だった場合に対する例外クラス [詳解]

ExceptionNotPositiveLength< T > の継承関係図
ExceptionInvalidLength< T > ExceptionLength

公開メンバ関数

 ExceptionNotPositiveLength (const std::string &info, T invalidLength)
 不正と判断された値を指定して構築 [詳解]
 
- 基底クラス ExceptionInvalidLength< T > に属する継承公開メンバ関数
 ExceptionInvalidLength (const std::string &info, T invalidLength)
 不正と判断された長さを指定して構築 [詳解]
 
invalidLength () const
 不正な長さを返す [詳解]
 
void printInfo (std::ostream &os) const
 不正値の出力 [詳解]
 
- 基底クラス ExceptionLength に属する継承公開メンバ関数
 ExceptionLength (const std::string &info)
 例外に関する情報を指定して構築 [詳解]
 

詳解

template<class T>
class ExceptionNotPositiveLength< T >

長さがゼロ以下だった場合に対する例外クラス

長さがゼロ以下だった場合に投げられる例外クラス。内部に不正と判断された長さを保持する。 長さゼロの場合は不正としたい場合はこの例外を用いる。

テンプレート引数の T は通常、対象イテレータやコンテナクラスの difference_type となる。

構築子と解体子

◆ ExceptionNotPositiveLength()

template<class T >
ExceptionNotPositiveLength< T >::ExceptionNotPositiveLength ( const std::string &  info,
invalidLength 
)
inlineexplicit

不正と判断された値を指定して構築

引数
info例外に関する情報
invalidLength不正な長さ

このクラス詳解は次のファイルから抽出されました: