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_INCLUDED
25
#define BOOST_REGEX_FWD_HPP_INCLUDED
27
#ifndef BOOST_REGEX_CONFIG_HPP
28
#include <boost/config.hpp>
30
#include <boost/detail/allocator.hpp>
33
// define BOOST_REGEX_NO_FWD if this
34
// header doesn't work!
36
#ifdef BOOST_REGEX_NO_FWD
37
# ifndef BOOST_RE_REGEX_HPP
38
# include <boost/regex.hpp>
43
// If there isn't good enough wide character support then there will
44
// be no wide character regular expressions:
46
#if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING)) && !defined(BOOST_NO_WREGEX)
47
# define BOOST_NO_WREGEX
52
template <class charT>
55
template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
58
typedef reg_expression<char, regex_traits<char>, BOOST_DEFAULT_ALLOCATOR(char) > regex;
59
#ifndef BOOST_NO_WREGEX
60
typedef reg_expression<wchar_t, regex_traits<wchar_t>, BOOST_DEFAULT_ALLOCATOR(wchar_t) > wregex;
65
#endif // BOOST_REGEX_NO_FWD