Sha256: 1891f90318084cc27a521709f10635f1b9fff2e8ed819ab4478aa72ce2e799e0
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
// Copyright Joakim Karlsson & Kim Gräsman 2010-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef IGLOO_ANDEXPRESSION_H #define IGLOO_ANDEXPRESSION_H #include "./expression_fwd.h" namespace snowhouse { template< typename LeftExpression, typename RightExpression > struct AndExpression : Expression< AndExpression<LeftExpression, RightExpression> > { AndExpression(const LeftExpression& left, const RightExpression& right) : m_left(left) , m_right(right) { } template< typename ActualType > bool operator()(const ActualType& actual) const { return (m_left(actual) && m_right(actual)); } LeftExpression m_left; RightExpression m_right; }; template< typename LeftExpression, typename RightExpression > struct Stringizer< AndExpression<LeftExpression, RightExpression> > { static std::string ToString(const AndExpression<LeftExpression, RightExpression>& expression) { std::ostringstream builder; builder << Stringize(expression.m_left) << " and " << Stringize(expression.m_right); return builder.str(); } }; } #endif
Version data entries
2 entries across 2 versions & 1 rubygems