]> git.lyx.org Git - lyx.git/blob - boost/boost/regex/v4/regex_fwd.hpp
Boost 1.31.0
[lyx.git] / boost / boost / regex / v4 / regex_fwd.hpp
1 /*
2  *
3  * Copyright (c) 1998-2002
4  * Dr John Maddock
5  *
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)
9  *
10  */
11
12  /*
13   *   LOCATION:    see http://www.boost.org for most recent version.
14   *   FILE         regex_fwd.cpp
15   *   VERSION      see <boost/version.hpp>
16   *   DESCRIPTION: Forward declares boost::reg_expression<> and
17   *                associated typedefs.
18   */
19
20 #ifndef BOOST_REGEX_FWD_HPP_INCLUDED
21 #define BOOST_REGEX_FWD_HPP_INCLUDED
22
23 #ifndef BOOST_REGEX_CONFIG_HPP
24 #include <boost/config.hpp>
25 #endif
26 #include <boost/detail/allocator.hpp>
27
28 //
29 // define BOOST_REGEX_NO_FWD if this
30 // header doesn't work!
31 //
32 #ifdef BOOST_REGEX_NO_FWD
33 #  ifndef BOOST_RE_REGEX_HPP
34 #     include <boost/regex.hpp>
35 #  endif
36 #else
37
38 //
39 // If there isn't good enough wide character support then there will
40 // be no wide character regular expressions:
41 //
42 #if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING)) && !defined(BOOST_NO_WREGEX)
43 #  define BOOST_NO_WREGEX
44 #endif
45
46 namespace boost{
47
48 template <class charT>
49 class regex_traits;
50
51 template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
52 class reg_expression;
53 template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
54 class basic_regex;
55
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;
59 #endif
60
61 } // namespace boost
62
63 #endif  // BOOST_REGEX_NO_FWD
64
65 #endif
66
67
68
69