diff --git a/doc/reference.html b/doc/reference.html index 2fbc144..c3d7af8 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -134,6 +134,7 @@ return (*x).*mf(arg1, arg2, ..., argN); } +
  • A function object f of type F is stateless if it is a function pointer or if boost::is_stateless<T> is true. The construction of or copy to a Boost.Function object from a stateless function object will not cause exceptions to be thrown and will not allocate any storage.
  • Class function_base

    @@ -166,12 +167,13 @@

    functionN(const functionN& g);

    template<typename F> functionN(F g, const Mixin& = Mixin()); @@ -179,7 +181,7 @@

  • Requires: g is a compatible function object.
  • Effects: Constructs the Mixin subobject from the given mixin.
  • Postconditions: f targets a copy of g if g is nonempty, or f.empty() if g is empty.
  • -
  • Rationale: g is a reference-to-const because it is a portable, efficient, and concise way to accept any function object or function pointer. In the case of a function pointer, the type of g is reference-to-const pointer-to-function.
  • +
  • Throws: will not throw when g is a stateless function object unless construction of the Mixin subobject throws.
  • template<typename F> functionN(reference_wrapper<F> g); @@ -187,13 +189,14 @@

  • Requires: g.get() is a compatible function object.
  • Effects: Constructs the Mixin subobject from the given mixin.
  • Postconditions: this object targets g (not a copy of g.get()) if g.get() is nonempty, or this->empty() if g.get() is empty.
  • -
  • Throws: will not throw.
  • +
  • Throws: will not throw unless the construction of the Mixin subobject throws.
  • functionN& operator=(const functionN& g);

    template<typename F> functionN& operator=(F g); @@ -201,7 +204,7 @@

  • Requires: g is a compatible function object.
  • Postconditions: f targets a copy of g if g is nonempty, or f.empty() if g is empty.
  • Returns: *this.
  • -
  • Rationale: g is a reference-to-const because it is a portable, efficient, and concise way to accept any function object or function pointer. In the case of a function pointer, the type of g is reference-to-const pointer-to-function.
  • +
  • Throws: will not throw when g is a stateless function object.
  • template<typename F> functionN& operator=(reference_wrapper<F> g); @@ -288,7 +291,7 @@

    Douglas Gregor
    -Last modified: Fri Jan 25 10:00:28 EST 2002 +Last modified: Tue Jan 29 22:51:49 EST 2002