Skip to content

Latest commit

 

History

History
54 lines (48 loc) · 1.73 KB

File metadata and controls

54 lines (48 loc) · 1.73 KB
title stdext Namespace | 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
stdext
dev_langs
C++
helpviewer_keywords
_DEFINE_DEPRECATED_HASH_CLASSES symbol
stdext namespace
ms.assetid 3e94fc89-0584-424f-bc09-081b73379545
caps.latest.revision 10
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

stdext Namespace

Members of the <hash_map> and <hash_set> header files are not currently part of the ISO C++ standard. Therefore, these types and members have been moved from the std namespace to namespace stdext, to remain conformant with the C++ standard.

When compiling with /Ze, which is the default, the compiler will warn on the use of std for members of the <hash_map> and <hash_set> header files. To disable the warning, use the warning pragma.

To have the compiler generate an error for the use of std for members of the <hash_map> and <hash_set> header files with /Ze, add the following directive before #include'ing any C++ Standard Library header files.

#define _DEFINE_DEPRECATED_HASH_CLASSES 0  

When compiling with /Za, the compiler will generate an error.

See Also

C++ Standard Library Overview