From 4f8d6c877ddb413c177e74368a2ec05b0139f81d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 May 2014 17:54:43 -0400 Subject: [PATCH] Variant - Implemented an (unused) operator_nopartial for the sake of symmetry. --- src/Variant.cpp | 7 +++++++ src/Variant.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/Variant.cpp b/src/Variant.cpp index 3fbddec06..1bf082750 100644 --- a/src/Variant.cpp +++ b/src/Variant.cpp @@ -888,6 +888,13 @@ bool Variant::operator_partial (const Variant& other) const return false; } +//////////////////////////////////////////////////////////////////////////////// +// Inverse of operator_partial. +bool Variant::operator_nopartial (const Variant& other) const +{ + return ! operator_partial (other); +} + //////////////////////////////////////////////////////////////////////////////// bool Variant::operator_hastag (const Variant& other) const { diff --git a/src/Variant.h b/src/Variant.h index bc81892a7..a2a41f091 100644 --- a/src/Variant.h +++ b/src/Variant.h @@ -65,6 +65,7 @@ public: bool operator_match (const Variant&) const; bool operator_nomatch (const Variant&) const; bool operator_partial (const Variant&) const; + bool operator_nopartial (const Variant&) const; bool operator_hastag (const Variant&) const; bool operator_notag (const Variant&) const; bool operator! () const;