Public Member Functions | Private Attributes | Friends | List of all members
internal::locale_ref Class Reference

#include <core.h>

Public Member Functions

 locale_ref ()
 
template<typename Locale >
 locale_ref (const Locale &loc)
 
template<typename Locale >
Locale get () const
 

Private Attributes

const void * locale_
 

Friends

class locale
 

Detailed Description

Definition at line 972 of file core.h.

Constructor & Destructor Documentation

internal::locale_ref::locale_ref ( )
inline

Definition at line 978 of file core.h.

978 : locale_(FMT_NULL) {}
const void * locale_
Definition: core.h:974
#define FMT_NULL
Definition: core.h:107
template<typename Locale >
internal::locale_ref::locale_ref ( const Locale &  loc)
explicit

Definition at line 211 of file format-inl.h.

211  : locale_(&loc) {
212  static_assert(std::is_same<Locale, std::locale>::value, "");
213 }
const void * locale_
Definition: core.h:974
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

Member Function Documentation

template<typename Locale >
Locale internal::locale_ref::get ( ) const

Definition at line 216 of file format-inl.h.

216  {
217  static_assert(std::is_same<Locale, std::locale>::value, "");
218  return locale_ ? *static_cast<const std::locale*>(locale_) : std::locale();
219 }
const void * locale_
Definition: core.h:974
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

Friends And Related Function Documentation

friend class locale
friend

Definition at line 975 of file core.h.

Member Data Documentation

const void* internal::locale_ref::locale_
private

Definition at line 974 of file core.h.


The documentation for this class was generated from the following files: