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