Skip to content

Latest commit

 

History

History
68 lines (53 loc) · 1.63 KB

File metadata and controls

68 lines (53 loc) · 1.63 KB
title codecvt_byname Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-standard-libraries
ms.tgt_pltfrm
ms.topic article
f1_keywords
xlocale/std::codecvt_byname
dev_langs
C++
helpviewer_keywords
codecvt_byname class
ms.assetid b63b6c04-f60c-47b9-8e30-a933f24a8ffb
caps.latest.revision 24
author corob-msft
ms.author corob
manager ghogen
ms.workload
cplusplus

codecvt_byname Class

A derived template class that describes an object that can serve as a collate facet of a given locale, enabling the retrieval of information specific to a cultural area concerning conversions.

Syntax

template <class CharType, class Byte, class StateType>
class codecvt_byname: public codecvt<CharType, Byte, StateType> {
public:
    explicit codecvt_byname(
    const char* _Locname,
    size_t _Refs = 0);
explicit codecvt_byname(
    const string& _Locname,
    size_t _Refs = 0);
protected:
    virtual ~codecvt_byname();

};

Parameters

_Locname
A named locale.

_Refs
An initial reference count.

Remarks

Byname facets are automatically created when a named locale is constructed.

Its behavior is determined by the named locale _Locname. Each constructor initializes its base object with codecvt<CharType, Byte, StateType>( _Refs).

Requirements

Header: <locale>

Namespace: std

See Also

Thread Safety in the C++ Standard Library