3 * Copyright (c) 1998-2002
6 * Permission to use, copy, modify, distribute and sell this software
7 * and its documentation for any purpose is hereby granted without fee,
8 * provided that the above copyright notice appear in all copies and
9 * that both that copyright notice and this permission notice appear
10 * in supporting documentation. Dr John Maddock makes no representations
11 * about the suitability of this software for any purpose.
12 * It is provided "as is" without express or implied warranty.
17 * LOCATION: see http://www.boost.org for most recent version.
19 * VERSION see <boost/version.hpp>
20 * DESCRIPTION: Forward declares boost::reg_expression<> and
21 * associated typedefs.
24 #ifndef BOOST_REGEX_FWD_HPP
25 #define BOOST_REGEX_FWD_HPP
27 #include <boost/config.hpp>
28 #include <boost/detail/allocator.hpp>
31 // define BOOST_REGEX_NO_FWD if this
32 // header doesn't work!
34 #ifdef BOOST_REGEX_NO_FWD
35 # ifndef BOOST_RE_REGEX_HPP
36 # include <boost/regex.hpp>
41 // If there isn't good enough wide character support then there will
42 // be no wide character regular expressions:
44 #if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING)) && !defined(BOOST_NO_WREGEX)
45 # define BOOST_NO_WREGEX
50 template <class charT>
53 template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
56 typedef reg_expression<char, regex_traits<char>, BOOST_DEFAULT_ALLOCATOR(char)> regex;
57 #ifndef BOOST_NO_WREGEX
58 typedef reg_expression<wchar_t, regex_traits<wchar_t>, BOOST_DEFAULT_ALLOCATOR(wchar_t)> wregex;
63 #endif // BOOST_REGEX_NO_FWD