3 * Copyright (c) 1998-2002
6 * Use, modification and distribution are subject to the
7 * Boost Software License, Version 1.0. (See accompanying file
8 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
13 * LOCATION: see http://www.boost.org for most recent version.
15 * VERSION see <boost/version.hpp>
16 * DESCRIPTION: Forward declares boost::reg_expression<> and
17 * associated typedefs.
20 #ifndef BOOST_REGEX_FWD_HPP_INCLUDED
21 #define BOOST_REGEX_FWD_HPP_INCLUDED
23 #ifndef BOOST_REGEX_CONFIG_HPP
24 #include <boost/config.hpp>
26 #include <boost/detail/allocator.hpp>
29 // define BOOST_REGEX_NO_FWD if this
30 // header doesn't work!
32 #ifdef BOOST_REGEX_NO_FWD
33 # ifndef BOOST_RE_REGEX_HPP
34 # include <boost/regex.hpp>
39 // If there isn't good enough wide character support then there will
40 // be no wide character regular expressions:
42 #if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING)) && !defined(BOOST_NO_WREGEX)
43 # define BOOST_NO_WREGEX
48 template <class charT>
51 template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
53 template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
56 typedef basic_regex<char, regex_traits<char>, BOOST_DEFAULT_ALLOCATOR(char) > regex;
57 #ifndef BOOST_NO_WREGEX
58 typedef basic_regex<wchar_t, regex_traits<wchar_t>, BOOST_DEFAULT_ALLOCATOR(wchar_t) > wregex;
63 #endif // BOOST_REGEX_NO_FWD