remove \r
[extl.git] / extl / iterator / config / support.h
bloba56e7a966cbcf10751212fa6c40b598d5c9c1eac
1 /* ///////////////////////////////////////////////////////////////////////
2 * File: support.h
4 * Created: 08.11.20
5 * Updated: 08.11.20
7 * Brief: The Iterator Library Support
9 * [<Home>]
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
13 /* //////////////////////////////////////////////////////////////////// */
14 #ifndef EXTL_ITERATOR_CONFIG_SUPPORT_H
15 #define EXTL_ITERATOR_CONFIG_SUPPORT_H
17 #ifndef EXTL_ITERATOR_CONFIG_H
18 # error This file must be included of extl\iterator\config\config.h
19 #endif
21 #ifndef EXTL_TYPE_CONFIG_H
22 # include "../type/config/config.h"
23 #endif
25 /* ///////////////////////////////////////////////////////////////////////
26 * Compatibility
29 /* ///////////////////////////////////////////////////////////////////////
30 * raw pointer iterator traits support
31 * eg: iterator_traits<T*>::...
33 #ifdef EXTL_ITERATOR_RAW_POINTER_ITERATOR_TRAITS_SUPPORT
34 # undef EXTL_ITERATOR_RAW_POINTER_ITERATOR_TRAITS_SUPPORT
35 #endif
37 #if defined(EXTL_MEMBER_TEMPLATE_CLASS_SUPPORT) && \
38 defined(EXTL_TYPE_TRAITS_IS_PTR_SUPPORT) && \
39 defined(EXTL_TYPE_TRAITS_IS_CONST_SUPPORT) && \
40 defined(EXTL_TYPE_TRAITS_IS_REF_SUPPORT) && \
41 defined(EXTL_TYPE_TRAITS_REMOVE_PTR_SUPPORT) && \
42 defined(EXTL_TYPE_TRAITS_REMOVE_CV_SUPPORT) && \
43 defined(EXTL_TYPE_TRAITS_REMOVE_REF_SUPPORT) && \
44 defined(EXTL_TYPE_TRAITS_ADD_REF_SUPPORT) && \
45 defined(EXTL_TYPE_TRAITS_ADD_CONST_SUPPORT) && \
46 defined(EXTL_MPL_IF_SUPPORT)
47 # define EXTL_ITERATOR_RAW_POINTER_ITERATOR_TRAITS_SUPPORT
48 #endif
50 /* pointer as iterator support */
51 #ifdef EXTL_ITERATOR_POINTER_AS_ITERATOR_SUPPORT
52 # undef EXTL_ITERATOR_POINTER_AS_ITERATOR_SUPPORT
53 #endif
55 #if defined(EXTL_ITERATOR_RAW_POINTER_ITERATOR_TRAITS_SUPPORT)
56 # define EXTL_ITERATOR_POINTER_AS_ITERATOR_SUPPORT
57 #endif
58 /* //////////////////////////////////////////////////////////////////// */
59 #endif /* EXTL_ITERATOR_CONFIG_SUPPORT_H */
60 /* //////////////////////////////////////////////////////////////////// */