Concepts
Da cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Um conceito é um termo que descreve "conjunto nomeado de requisitos 'um para um tipo. Conceitos são uma maneira mais conveniente para especificar quais propriedades são esperados a partir de um tipo, e que as propriedades de um tipo tem.
Original:
A concept is a term that describes a named set of requirements for a type. Concepts are a more convenient way to specify both what properties are expected from a type, and what properties a type has.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Houve a proposal para incluir uma especificação formal de conceitos em C + 11 para que o compilador pode verificar os requisitos do tipo antes instanciação do modelo e, por sua vez poderia produzir mensagens de erro muito mais sensíveis no caso de um tipo não cumpriu o modelo requisitos. Esta proposta foi posteriormente abandonada por várias razões. No entanto, existem planos oficiais para adicionar conceitos para uma futura revisão da linguagem C + +.
Original:
There was a proposal to include a formal specification of concepts into C++11 so that the compiler could check the type requirements before template instantiation and in turn could produce much more sensible error messages in case a type did not fulfill the template requirements. This proposal was later dropped for various reasons. However, there are unofficial plans to add concepts to a future revision of the C++ language.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Aqui' conceitos têm pouco em comum com a proposta supramencionada. Eles se referem a requisitos enunciados informais, usados em C + e C + 03 11 para definir o comportamento e propriedades esperadas para vários tipos.
Original:
Here concepts have little in common with the abovementioned proposal. They refer to informal named requirements, used in C++03 and C++11 to define behavior and expected properties for various types.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Original: Basic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
especifica que tipo tem construtor padrão Original: specifies that type has default constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
(C++11) |
especifica que tipo tem construtor movimento Original: specifies that type has move constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
especifica que tipo tem construtor de cópia Original: specifies that type has copy constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
(C++11) |
especifica que tipo tem operador de atribuição movimento Original: specifies that type has move assignment operator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
especifica que tipo tem operador de atribuição de cópia Original: specifies that type has copy assignment operator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
tipo tem um destruidor que apaga toda a memória Original: type has a destructor that clears all memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
Original: Layout The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Note, that the standard doesn't define named requirements or concepts with names specified in this subcategory. These are type categories defined by the core language. They are included here as concepts only for consistency. | |
(C++11) |
classe com trivial cópia atribuição, e destruidor Original: class with trivial copy, assignment and destructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
classe com construtores triviais, cessão e destruidor Original: class with trivial constructors, assignment and destructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
não-virtual classe contendo apenas os membros StandardLayout outros, todos com o mesmo controle de acesso Original: non-virtual class containing only other StandardLayout members, all with the same access control The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
POD estrutura (Plain dados antigos), compatível com C struct Original: POD (Plain Old Data) structure, compatible with C struct The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
Original: Library-wide The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
tem um operator== de trabalho que é uma relação de equivalênciaOriginal: has a working operator== that is an equivalence relationThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
operator< é uma fraca relação estrita ordenaçãoOriginal: operator< is a strict weak ordering relationThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
(C++11) |
pode ser trocado com um incondicional swap() chamada não-membro da função Original: can be swapped with an unqualified non-member function call swap() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
um Iterator que cancela a referência a um tipo de Swappable Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
ponteiro-como tipo de apoio a um valor nulo Original: pointer-like type supporting a null value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
(conceito) |
tipo de classe que contém informações de alocação Original: class type that contains allocation information The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
um objeto de função que pode ser chamado com argumentos específicos e tem valor de retorno conversível ao tipo específico Original: a function object that can be called with specific arguments and has return value convertible to specific type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
um Callable que retorna um valor convertível em bool para um argumento sem modificá-loOriginal: a Callable that returns a value convertible to bool for one argument without modifying itThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
um Callable que retorna um valor convertível em bool dois argumentos sem modificá-losOriginal: a Callable that returns a value convertible to bool for two arguments without modifying themThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
Original: Container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
estrutura de dados que permite o acesso elemento usando iteradores Original: data structure that allows element access using iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
contêiner usando iteradores bidirecionais Original: container using bidirectional iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
(C++11) |
contêiner usando um alocador Original: container using an allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
recipiente com elementos armazenados de forma linear Original: container with elements stored linearly The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
recipiente que armazena elementos, associando-as às chaves Original: container that stores elements by associating them to keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
recipiente que armazena elementos armazenados em baldes, associando-as às chaves Original: container that stores elements stored in buckets by associating them to keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
Original: Container element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
elemento pode ser cópia construído em armazenamento não inicializado Original: element can be copy-constructed in uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
elemento pode ser mover-construído no armazenamento não inicializado Original: element can be move-constructed in uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
elemento pode ser construído em armazenamento não inicializado Original: element can be constructed in uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
Original: Iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
conceito geral para acessar dados dentro de uma estrutura de dados Original: general concept to access data within some data structure The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
iterador que pode ser usado para ler os dados Original: iterator that can be used to read data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
iterador que pode ser utilizado para gravar dados Original: iterator that can be used to write data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
iterador que pode ser usado para ler os dados de tempos múltiplos Original: iterator that can be used to read data multiple times The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
iterador que tanto pode ser incrementado e decrementado Original: iterator that can be both incremented and decremented The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
iterador que pode ser avançada em tempo constante Original: iterator that can be advanced in constant time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
Original: Stream I/O functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
uma função de fluxo de entrada que não pular espaços em branco e conta os caracteres processados Original: a stream input function that doesn't skip whitespace and counts the processed characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
uma função de fluxo de entrada que ignora espaços em branco levando Original: a stream input function that skips leading whitespace The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
uma função de saída básico fluxo Original: a basic stream output function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
uma função de saída de fluxo que define failbit em erros preexistentes e retorna uma referência para o fluxo Original: a stream output function that sets failbit on preexisting errors and returns a reference to the stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
Original: Random Number Generation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
consome uma seqüência de números inteiros e produz uma seqüência de valores de 32 bits sem sinal Original: consumes a sequence of integers and produces a sequence of 32-bit unsigned values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
retorna distribuído uniformemente aleatórios inteiros sem sinal Original: returns uniformly distributed random unsigned integers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
um UniformRandomNumberGenerator determinista, definida pela semente Original: a deterministic UniformRandomNumberGenerator , defined by the seed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
um RandomNumberEngine que transforma a saída de outro RandomNumberEngine Original: a RandomNumberEngine that transforms the output of another RandomNumberEngine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
retorna números aleatórios distribuídos de acordo com uma função de densidade de probabilidade dada matemático Original: returns random numbers distributed according to a given mathematical probability density function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
Original: Concurrency The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
fornece semântica de propriedade exclusiva para agentes de execução (threads, por exemplo) Original: provides exclusive ownership semantics for execution agents (i.e. threads) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
acrescenta tentou bloquear a aquisição BasicLockable Original: adds attempted lock acquisition to BasicLockable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
adiciona aquisição de bloqueio programado para Lockable Original: adds timed lock acquisition to Lockable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
um Lockable que protege contra as corridas de dados e de sincronização sequencialmente consistente Original: a Lockable that protects against data races and sequentially consistent synchronization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
um TimedLockable que protege contra as corridas de dados e de sincronização sequencialmente consistente Original: a TimedLockable that protects against data races and sequentially consistent synchronization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
Original: Other The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
descreve uma propriedade de um tipo Original: describes a property of a type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
descreve uma relação entre os dois tipos Original: describes a relationship between two types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
modifica uma propriedade de um tipo Original: modifies a property of a type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
agrega uma duração, um ponto de tempo, e uma função para obter o ponto de tempo actual Original: aggregates a duration, a time point, and a function to get the current time point The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
(C++11) |
um Clock que não lançar exceções Original: a Clock that doesn't throw exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
define os tipos e funções para um tipo de personagem Original: defines types and functions for a character type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
representa uma posição em um córrego Original: represents a position in a stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
representa um deslocamento em um córrego Original: represents an offset in a stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) | |
bitset, inteiro ou enumeração Original: bitset, integer, or enumeration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (conceito) |
Esta seção está incompleta Motivo: Any other missing concept? |