Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
3 * Silicon Graphics Computer Systems, Inc.
5 * Permission to use, copy, modify, distribute and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appear in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation. Silicon Graphics makes no
10 * representations about the suitability of this software for any
11 * purpose. It is provided "as is" without express or implied warranty.
14 // WARNING: This is an internal header file, included by other C++
15 // standard library headers. You should not attempt to use this header
18 #ifndef _STLP_INTERNAL_CTRAITS_FUNCTIONS_H
19 #define _STLP_INTERNAL_CTRAITS_FUNCTIONS_H
21 # ifndef _STLP_INTERNAL_FUNCTION_H
22 # include <stl/_function_base.h>
25 // This file contains a few small adapters that allow a character
26 // traits class to be used as a function object.
30 template <class _Traits>
32 : public binary_function<typename _Traits::char_type,
33 typename _Traits::char_type,
36 bool operator()(const typename _Traits::char_type& __x,
37 const typename _Traits::char_type& __y) const
38 { return _Traits::eq(__x, __y); }
41 template <class _Traits>
43 : public unary_function<typename _Traits::char_type, bool>
45 typename _Traits::char_type __val;
46 _Eq_char_bound(typename _Traits::char_type __c) : __val(__c) {}
47 bool operator()(const typename _Traits::char_type& __x) const
48 { return _Traits::eq(__x, __val); }
51 template <class _Traits>
52 struct _Neq_char_bound
53 : public unary_function<typename _Traits::char_type, bool>
55 typename _Traits::char_type __val;
56 _Neq_char_bound(typename _Traits::char_type __c) : __val(__c) {}
57 bool operator()(const typename _Traits::char_type& __x) const
58 { return !_Traits::eq(__x, __val); }
61 template <class _Traits>
63 : public unary_function<typename _Traits::char_type, bool>
65 typename _Traits::int_type __val;
67 _Eq_int_bound(typename _Traits::int_type __c) : __val(__c) {}
68 bool operator()(const typename _Traits::char_type& __x) const
69 { return _Traits::eq_int_type(_Traits::to_int_type(__x), __val); }
73 template <class _Traits>
75 : public binary_function<typename _Traits::char_type,
76 typename _Traits::char_type,
79 bool operator()(const typename _Traits::char_type& __x,
80 const typename _Traits::char_type& __y) const
81 { return _Traits::lt(__x, __y); }
87 #endif /* _STLP_INTERNAL_CTRAITS_FUNCTIONS_H */