DictionaryForumContacts

 zip-imp

link 2.05.2010 6:23 
Subject: classkey
Пожалуйста, помогите перевести.

Слово classkey встречается в следующем контексте:

1 If an elaboratedtypespecifier is the sole constituent of a declaration, the declaration is illformed unless it is an explicit specialization (14.7.3), or an explicit instantiation (14.7.2)
2 3.4.4 describes how name lookup proceeds for the identifier in an elaboratedtypespecifier. If the identifier resolves to a classname or enumname, the elaboratedtypespecifier introduces it into the declaration the same way a simpletypespecifier introduces its typename. If the identifier resolves to a typedefname or a template typeparameter, the elaboratedtypespecifier is illformed. [Note: this implies that,within a class template with a template typeparameter T, the declaration
friend class T;
is illformed. ] If name lookup does not find a declaration for the name, the elaboratedtypespecifier is illformed unless it is of the simple form classkey identifier in which case the identifier is declared as described in 3.3.1.
3 The classkey or enum keyword present in the elaboratedtypespecifier shall agree in kind with the declaration to which the name in the elaboratedtypespecifier refers. This rule also applies to the form of elaboratedtypespecifier that declares a classname or friend class since it can be construed as referring to the definition of the class. Thus, in any elaboratedtypespecifier,the enum keyword shall be used to refer to an enumeration (7.2), the union classkey shall be used to refer to a union (clause 9), and either the class or struct classkey shall be used to refer to a class (clause 9) declared using the class or struct classkey.

Заранее спасибо

 NC1

link 2.05.2010 7:30 
Не надо ничего переводить. Это идентификатор, который пишется в коде. Надо оставить как есть.

 zip-imp

link 2.05.2010 16:23 
такого ключевого слова в С++ нет вроде =\

 zip-imp

link 2.05.2010 17:01 
насколько я понял из http://webcache.googleusercontent.com/search?q=cache:SU4EjxejcvMJ:www.eecs.ucf.edu/~leavens/larchc++manual/lcpp_128.html+classkey+identifier&cd=3&hl=ru&ct=clnk classkey он же class-key - это спецификатор доступа.

 

You need to be logged in to post in the forum

Get short URL