Commit e2bc112a authored by Davis King's avatar Davis King

Fixed a typo in the spec for the is_empty() functions. I also added an

is_set() to the any_function so that it's interface is similar to the
member_function_pointer.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404132
parent 5d6d7f4b
......@@ -97,9 +97,9 @@ namespace dlib
/*!
ensures
- if (this object contains any kind of object) then
- returns true
- returns false
- else
- returns false
- returns true
!*/
template <typename T>
......
......@@ -93,9 +93,9 @@ namespace dlib
/*!
ensures
- if (this object contains any kind of object) then
- returns true
- returns false
- else
- returns false
- returns true
!*/
scalar_type operator() (
......
......@@ -119,9 +119,16 @@ namespace dlib
/*!
ensures
- if (this object contains any kind of object) then
- returns true
- returns false
- else
- returns false
- returns true
!*/
bool is_set (
) const;
/*!
ensures
- returns !is_empty()
!*/
result_type operator() (
......
......@@ -69,6 +69,12 @@ bool is_empty(
return data.get() == 0;
}
bool is_set(
) const
{
return !is_empty();
}
template <typename T>
T& cast_to(
)
......
......@@ -103,9 +103,9 @@ namespace dlib
/*!
ensures
- if (this object contains any kind of object) then
- returns true
- returns false
- else
- returns false
- returns true
!*/
trained_function_type train (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment