From f36e83fb276dd02739a150a9420b30d8a34f1a90 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 16 Sep 2002 03:44:18 +0000 Subject: [PATCH] function_base.hpp: - Remove safe_bool conversion and operator! from class function_base function_template.hpp: - Add safe_bool conversion and operator! - operator! returns bool, not safe_bool (Peter Dimov) reference.html: - Document above change [SVN r15356] --- doc/reference.html | 33 ++++++++++---------- include/boost/function/function_base.hpp | 19 ----------- include/boost/function/function_template.hpp | 19 +++++++++++ 3 files changed, 36 insertions(+), 35 deletions(-) diff --git a/doc/reference.html b/doc/reference.html index db9e205..51d73e6 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -17,8 +17,6 @@ { typedef implementation-defined safe_bool; bool empty() const; - operator safe_bool() const; - safe_bool operator!() const; }; // For N in [0, MAX_ARGS] @@ -66,6 +64,10 @@ void swap(functionN&); void clear(); + // Boolean context + operator safe_bool() const; + bool operator!() const; + // Invocation result_type operator()(Arg1 a1, Arg2 a2, ..., ArgN aN) const; }; @@ -146,20 +148,6 @@
  • Throws: will not throw.
  • -

    operator safe_bool() const -

    - -

    safe_bool operator!() const -

    -

    Class template functionN

    Class template functionN is actually a family of related classes function0, function1, etc., up to some implementation-defined maximum. In this context, N refers to the number of parameters and f refers to the implicit object parameter. @@ -239,6 +227,19 @@

  • Postconditions: empty().
  • +

    operator safe_bool() const +

    + +

    bool operator!() const +

    +

    result_type operator()(Arg1 a1, Arg2 a2, ..., ArgN aN) const;