Concepts
Aus 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. |
Ein Konzept ist ein Begriff, der eine benannte Menge von Anforderungen für einen Typ beschreibt. Konzepte sind ein bequemer Weg, um sowohl anzugeben, welche Eigenschaften von einem Typ zu erwarten sind, als auch welche Eigenschaften ein Typ hat.
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.
Es gab a proposal eine formale Spezifikation von Konzepten in C++11, mit der Zielsetzung, dass der Compiler die Art der Anforderungen vor der Instanziierung prüfen kann und somit sinnvollere Fehlermeldungen produzieren kann, falls ein Typ die Anforderungen des Templates nicht erfüllt. Dieser Vorschlag wurde später aus verschiedenen Gründen wieder fallen gelassen. Allerdings gibt es inoffizielle Pläne, in einer zukünftigen Version von C++ Konzepte wieder hinzuzufügen.
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.
Die hier aufgeführten Konzepte haben wenig gemein mit dem oben genannten Vorschlag. Sie beziehen sich eher auf informelle Anforderungen, die in C++03 und C++11 verwendet werden, um das Verhalten und die erwarteten Eigenschaften verschiedener Typen zu definieren.
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. | |
gibt an, dass Typ hat Standardkonstruktor 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. (Konzept) | |
(C++11) | gibt an, dass Typ hat move Konstruktor 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. (Konzept) |
gibt an, dass Typ hat Copy-Konstruktor 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. (Konzept) | |
(C++11) | gibt an, dass move Zuweisungsoperator hat 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. (Konzept) |
gibt an, dass Typ hat Zuweisungsoperator 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. (Konzept) | |
Typ hat einen Destruktor, die alle Speicher gelöscht werden 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. (Konzept) | |
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) | Klasse mit trivialen Kopie, Zuweisung und Destruktor 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. (Konzept) |
(C++11) | Klasse mit triviale Konstruktoren, Zuweisung und Destruktor 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. (Konzept) |
(C++11) | nicht-virtuellen-Klasse, die nur anderen Standardlayout Mitgliedern, die alle mit der gleichen Zutrittskontrolle 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. (Konzept) |
POD (Plain Old Data) Struktur mit 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. (Konzept) | |
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. | |
hat eine Arbeitsbreite operator== , die eine Äquivalenzrelation istOriginal: 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. (Konzept) | |
operator< ist eine strenge schwache OrdnungsrelationOriginal: 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. (Konzept) | |
(C++11) | kann mit einem uneingeschränkten Nichtmitgliedstaaten Funktionsaufruf swap() getauscht werden 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. (Konzept) |
(C++11) | ein Iterator , dass dereferences einer Swappable Typ Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Konzept) |
(C++11) | Zeiger-wie Typ unterstützen einen Nullwert 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. (Konzept) |
(C++11) | (Konzept) |
Klasse Typ, der Allokation Informationen enthält 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. (Konzept) | |
ein Funktions-Objekt, die mit bestimmten Argumenten aufgerufen werden kann und Rückgabewert konvertierbar bestimmten Typs 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. (Konzept) | |
a Callable , die einen Wert konvertierbar bool für ein Argument ohne es zu ändern zurückgibtOriginal: 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. (Konzept) | |
a Callable , die einen Wert konvertierbar bool für zwei Argumente ohne sie zu ändern zurückgibtOriginal: 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. (Konzept) |
Original: Container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Datenstruktur, die den Element Zugriff mit Iteratoren ermöglichen 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. (Konzept) | |
Container mit bidirektionalen Iteratoren 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. (Konzept) | |
(C++11) | Behälter mit einem Zuordner 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. (Konzept) |
Behälter mit linear gespeicherten Elementen 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. (Konzept) | |
Container, der die Elemente anhand eines Schlüssels speichert 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. (Konzept) | |
Behälter, dass Elemente in Eimern durch ihre Beteiligung an den Schlüssel gespeichert speichert 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. (Konzept) | |
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) | Element kann copy-gebaut initialisierten Speicher 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. (Konzept) |
(C++11) | Element kann in initialisierten Speicher zu verschieben-gebaut werden 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. (Konzept) |
(C++11) | Element kann in initialisierten Speicher ausgebildet sein 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. (Konzept) |
Original: Iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
allgemeine Konzept für den Zugriff auf Daten innerhalb einiger Datenstruktur 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. (Konzept) | |
Iterator, mit der Daten gelesen werden können 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. (Konzept) | |
Iterator, verwendet, um Daten schreiben kann 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. (Konzept) | |
Iterator zum Lesen Daten mehrfach werden kann 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. (Konzept) | |
Iterator, sowohl erhöht und verringert werden 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. (Konzept) | |
Iterator, in konstanter Zeit vorgeschoben werden kann 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. (Konzept) | |
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. | |
ein Strom-Eingang Funktion, die nicht zu überspringen gilt Leerzeichen und zählt die verarbeiteten Zeichen 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. (Konzept) | |
ein Strom-Eingang Funktion, überspringt führende Leerzeichen 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. (Konzept) | |
eine grundlegende Stream-Ausgabe-Funktion 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. (Konzept) | |
a Stream-Ausgabe-Funktion, die failbit setzt auf bereits vorhandene Fehler und gibt einen Verweis auf den Strom 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. (Konzept) | |
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) | verbraucht eine Folge von ganzen Zahlen und erzeugt eine Folge von 32-Bit-Werte ohne Vorzeichen 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. (Konzept) |
(C++11) | kehrt gleichmäßig verteilt zufällige Ganzzahlen ohne Vorzeichen 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. (Konzept) |
(C++11) | eine deterministische UniformRandomNumberGenerator , durch den Samen definiert 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. (Konzept) |
(C++11) | ein RandomNumberEngine , die die Ausgabe eines anderen RandomNumberEngine verwandelt 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. (Konzept) |
(C++11) | zurückgibt Zufallszahlen gemäß einer gegebenen mathematischen Wahrscheinlichkeitsdichtefunktion 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. (Konzept) |
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) | bietet exklusive Eigentum Semantik zur Ausführung Mittel (dh Threads) 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. (Konzept) |
(C++11) | fügt versuchten zu sperren Akquisition 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. (Konzept) |
(C++11) | fügt zeitlich Schloss Akquisition 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. (Konzept) |
(C++11) | a Lockable , die gegen Daten Rassen und sequenziell konsistenten Synchronisierung schützt 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. (Konzept) |
(C++11) | a TimedLockable , die gegen Daten Rassen und sequenziell konsistenten Synchronisierung schützt 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. (Konzept) |
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) | beschreibt eine Eigenschaft eines Typs 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. (Konzept) |
(C++11) | beschreibt eine Beziehung zwischen zwei Typen 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. (Konzept) |
(C++11) | modifiziert eine Eigenschaft eines Typs 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. (Konzept) |
(C++11) | Aggregate eine Dauer, einen Zeitpunkt, und eine Funktion, um den momentanen Zeitpunkt erhalten 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. (Konzept) |
(C++11) | a Clock , die nicht werfen keine Ausnahmen 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. (Konzept) |
definiert Typen und Funktionen für ein Zeichen geben 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. (Konzept) | |
stellt eine Position in einem Strom 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. (Konzept) | |
stellt eine in einem Strom ausgeglichen 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. (Konzept) | |
bitset, integer oder Enumeration 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. (Konzept) |
This section is incomplete Reason: Any other missing concept? |