Index: index.html =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/bigint/index.html,v retrieving revision 1.1 diff -u -r1.1 index.html --- index.html 5 Sep 2002 16:16:10 -0000 1.1 +++ index.html 6 Sep 2002 18:46:55 -0000 @@ -10,18 +10,18 @@ Defined in boost/bigint.hpp. -

Contents

+

Contents

  1. Rationale
  2. Example
  3. Synopsis
  4. -
  5. Interface
  6. +
  7. Interface +
  8. Exceptions
  9. Internal Representation
  10. Design Notes
  11. @@ -31,7 +31,7 @@
-

Rationale

+

Rationale

C++ contains a wealth of built-in types, such as int, unsigned int, and long, that approximate @@ -48,7 +48,7 @@ integral types as well. -

Example

+

Example>

The following is a simple example of the use of bigint (bigint_example1.cpp): @@ -76,7 +76,7 @@ 40! = 815915283247897734345611269596115894272000000000 -

Synopsis

+

Synopsis

 #include <boost/bigint.hpp>
@@ -135,9 +135,9 @@
 } 
 
-

Interface

+

Interface

-

Constructors and Assignment

+

Constructors and Assignment

bigint can be constructed, both explicitly and implicitly, from any built-in integral type. Thus bigint can interact conveniently with int and similar types. @@ -185,7 +185,7 @@ -

Arithmetic operations

+

Arithmetic operations

All of the standard numeric operators are defined for the bigint class. These include:
@@ -204,7 +204,7 @@ These operations have the semantics expected of a numeric type. Divide by zero results in undefined behavior. -

Input and Output

+

Input and Output

bigint provides an IOstream inserter (operator<<) and extractor (operator>>). bigint is represented externally as a string of decimal digits, prefixed with '-' @@ -213,7 +213,7 @@ same form as accepted by the std::string-based constructor, which is the same syntax inserted by operator<<. -

Conversions

+

Conversions

Though bigint supports implicit conversion from built-in integral types to integers, it does not support implicit conversion to the same built in integral types. Nonetheless, bigint can be safely @@ -251,7 +251,7 @@ -

Exceptions

+

Exceptions

bigint provides the basic exception guarantee. Except for swap, all @@ -262,7 +262,7 @@ caught, the object may be safely destructed or assigned to, but its state is otherwise undefined. -

Internal representation

+

Internal representation

Note: This section is meant only to inform. Programs should not be written in such a way as to rely on these implementation details. @@ -271,8 +271,8 @@ using a radix of 10,000 and kept in 10's complement form. Values are stored from least significant "digit" to most significant "digit." -

Design notes

-

Reference Implementation

+

Design notes

+

Reference Implementation

bigint is a reference implementation of the interface. It defines an interface for arbitrary magnitude integers and provides a portable @@ -287,7 +287,7 @@ 2. Seminumerical Algorithms. Chapter 4. -

Performance

+

Performance

The author is aware of several high-performance implementations of other integer libraries more focused upon performance. In the future, this library may allow for @@ -308,7 +308,7 @@

-Last modified: Thu Sep 5 11:13:57 EST 2002 +Last modified: Fri Sep 6 11:49:51 MST 2002