summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/c++11/facet_inst_macros.h
blob: e0a07b1d2f72e9b1efc3d43202d9a7246d22a425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _FACET_INST_MACROS_H
#define _FACET_INST_MACROS_H

// These macros are used for explicit instantiation definitions in src/c++11/

#define INSTANTIATE_USE_FACET(...)			    \
  template const __VA_ARGS__*				    \
    __try_use_facet< __VA_ARGS__ >(const locale&) noexcept; \
  template const __VA_ARGS__&				    \
    use_facet<__VA_ARGS__>(const locale&)

#define INSTANTIATE_FACET_ACCESSORS(...)		    \
  INSTANTIATE_USE_FACET(__VA_ARGS__);			    \
  template bool						    \
    has_facet<__VA_ARGS__>(const locale&) noexcept

#endif // _FACET_INST_MACROS_H