![]() |
Home | Libraries | People | FAQ | More |
Copyright c 2004 -2007 Fernando Luis Cacciola Carballal
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Table of Contents 目錄
The Boost Numeric Conversion library is a collection of tools
to describe and perform conversions between values of different numeric
types.
Boost Numeric Conversion 庫是一組用於描述和執行不同 數
字類型 間的轉換的工具。
The library includes a special alternative for a subset of std::numeric_limits<>,
the bounds<>
traits class, which provides a consistent way to obtain the boundary
values for the range
of a numeric type.
本庫包含了 std::numeric_limits<>
的一個子集的特殊替代物,bounds<>
traits 類,它提供了一致的方式來獲得一個數字類型的 范
圍 的 邊
界 值。
It also includes a set of trait classes
which describes the compile-time properties of a conversion from a
source to a target numeric type. Both arithmetic
and user-defined
numeric types can be used.
它還包括了一組 trait 類,
用於描述一個從源數字類型到目標數字類型的轉換的一些編譯期屬性。算
術類型 和 用
戶自定義的數字類型 均可使用。
A policy-based converter
object which uses conversion_traits
to select an optimized implementation is supplied. Such implementation
uses an optimal range checking code suitable for the source/target
combination.
一個基於策略的 轉換器
對象,提供了使用 conversion_traits
來選擇優化的實現。該實現使用一個優化的適用於源/目標組合的範圍檢查代碼。
|
Last revised: October 10, 2008 at 20:47:59 GMT |