git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1516
270642c3-0616-0410-b53a-bc976706d245
{
virtual void dump(GenericTLVParserBase<BaseParser> const & parser, std::ostream & os) const;
};
+
+ //Helper Functor for STL-compatible predicate (E.g. find_if, for_each ...)
+ template <class BaseParser, class Parser>
+ class Predicate
+ {
+ public:
+ const bool operator() (BaseParser const &p) const{
+ return p.template is<Parser>();
+ }
+ };
}
/** \brief TLV parser registration facility