diff options
Diffstat (limited to 'boost/compute/function.hpp')
-rw-r--r-- | boost/compute/function.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/boost/compute/function.hpp b/boost/compute/function.hpp index b0b893e948..a731e18751 100644 --- a/boost/compute/function.hpp +++ b/boost/compute/function.hpp @@ -164,6 +164,19 @@ public: m_definitions[name] = value; } + bool operator==(const function<Signature>& other) const + { + return + (m_name == other.m_name) + && (m_definitions == other.m_definitions) + && (m_source == other.m_source); + } + + bool operator!=(const function<Signature>& other) const + { + return !(*this == other); + } + /// \internal_ detail::invoked_function<result_type, boost::tuple<> > operator()() const |