Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/xpressive/detail/core/sub_match_impl.hpp @ 132:540eca98552e
Update qm-vamp-plugins metadata
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:06:51 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 // sub_match_impl.hpp |
Chris@16 | 3 // |
Chris@16 | 4 // Copyright 2008 Eric Niebler. Distributed under the Boost |
Chris@16 | 5 // Software License, Version 1.0. (See accompanying file |
Chris@16 | 6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 |
Chris@16 | 8 #ifndef BOOST_XPRESSIVE_DETAIL_CORE_SUB_MATCH_IMPL_HPP_EAN_10_04_2005 |
Chris@16 | 9 #define BOOST_XPRESSIVE_DETAIL_CORE_SUB_MATCH_IMPL_HPP_EAN_10_04_2005 |
Chris@16 | 10 |
Chris@16 | 11 // MS compatible compilers support #pragma once |
Chris@101 | 12 #if defined(_MSC_VER) |
Chris@16 | 13 # pragma once |
Chris@16 | 14 #endif |
Chris@16 | 15 |
Chris@16 | 16 #include <boost/xpressive/sub_match.hpp> |
Chris@16 | 17 |
Chris@16 | 18 namespace boost { namespace xpressive { namespace detail |
Chris@16 | 19 { |
Chris@16 | 20 |
Chris@16 | 21 // TODO: sub_match_impl is a POD IFF BidiIter is POD. Pool allocation |
Chris@16 | 22 // of them can be made more efficient if they are. Or maybe all they |
Chris@16 | 23 // need is trivial constructor/destructor. (???) |
Chris@16 | 24 |
Chris@16 | 25 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 26 // sub_match_impl |
Chris@16 | 27 // |
Chris@16 | 28 template<typename BidiIter> |
Chris@16 | 29 struct sub_match_impl |
Chris@16 | 30 : sub_match<BidiIter> |
Chris@16 | 31 { |
Chris@16 | 32 unsigned int repeat_count_; |
Chris@16 | 33 BidiIter begin_; |
Chris@16 | 34 bool zero_width_; |
Chris@16 | 35 |
Chris@16 | 36 sub_match_impl(BidiIter const &begin) |
Chris@16 | 37 : sub_match<BidiIter>(begin, begin) |
Chris@16 | 38 , repeat_count_(0) |
Chris@16 | 39 , begin_(begin) |
Chris@16 | 40 , zero_width_(false) |
Chris@16 | 41 { |
Chris@16 | 42 } |
Chris@16 | 43 }; |
Chris@16 | 44 |
Chris@16 | 45 }}} // namespace boost::xpressive::detail |
Chris@16 | 46 |
Chris@16 | 47 #endif |