diff --git a/include/stdex/mapping.hpp b/include/stdex/mapping.hpp index 3d5164f03..048f17c65 100644 --- a/include/stdex/mapping.hpp +++ b/include/stdex/mapping.hpp @@ -55,6 +55,18 @@ namespace stdex /// \returns true if mappings are different or false otherwise /// bool operator!=(const mapping& other) const { return !operator==(other); } + + /// + /// Adds two mappings by components + /// + /// \param[in] other Second mapping + /// + /// \returns Resulting mapping + /// + mapping operator+(_In_ const mapping& other) const + { + return mapping(from + other.from, to + other.to); + } }; template >>