GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing cplusplus.com — std::begin Reference
<iterator>
function template
<iterator> <array> <deque> <forward_list> <list> <map> <regex> <set> <string> <unordered_map> <unordered_set> <vector>
std::begin
Iterator to beginning
If the sequence is empty, the returned value shall not be dereferenced. These function templates are defined in multiple headers: Each of these headers includes the generic templates for all container and array types and not simply a specific overload. The headers are: <iterator>, <array>, <deque>, <forward_list>, <list>, map, <regex>, <set>, <string>, <unordered_map>, <unordered_set> and <vector>. Conversely, begin is overloaded (with a different definition) in headers <initializer_list> and <valarray>.Parameters
Return ValueFor (1), the same as returned by cont.begin().For (2), a pointer to the first element in the array. Example
Output:
Data racesThe argument is accessed but not modified.None of the elements in the sequence are accessed by the call, but the iterator returned can be used to access or modify them. Exception safetyProvides the same level of guarantees as the operation performed on the argument (for standard containers and arrays this is a no-throw guarantee).See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |