![]() | This redirect does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | C/C++ | |||
|
![]() | Text and/or other creative content from this version of Vector (C++) was copied or moved into Sequence containers (C++) with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
The result of the proposal was no consensus to move. JPG-GR ( talk) 18:45, 26 March 2008 (UTC)
Maybe std::vector would be a better title - it's more precise, and doesn't require any disambiguation. -- Zundark 15:57, 24 July 2006 (UTC)
I actually agree with this. std::vector is much more appropriate. Dlother ( talk) 18:20, 21 February 2008 (UTC)
I don't agree. Wikipedia is an encyclopedia, not a reference manual. I understand that other languages provide very similar constructs. In my opinion, this page should be primarily about this construct and its implementation, rather than about the particular syntax of C++. (I'm not going to be militant about this; just recording my opinions since you asked for discussion.) Sam Staton ( talk) 13:56, 8 March 2008 (UTC)
Why isn't there a template with a box on the right linking this to all the other STL pages? (or C++ Standard Library pages, for that matter?) This should be worked on. Figs 21:35, 4 March 2007 (UTC)
I have tagged the article because I think it makes a quite a few dubious or outright false claims. Examples:
I'll get to fixing these issues shortly. decltype 10:51, 29 January 2009 (UTC)
“ | the address of the (zero-indexed) 7th element in a vector v is the address of the 7th element (zero-indexed) of the vector v | ” |
Hi, I am currently considering renaming this article to conform to a common convention for C++ Standard Library components. The full discussion can be found here. decltype 09:46, 6 March 2009 (UTC)
In the Pros and cons section, one can read the two following statements:
The second paragraph was contributed later on, did the author forget to remove the first one? Erebadan ( talk) 04:29, 27 May 2009 (UTC)
There shouldn't be any argument that vector is part of the standard template library. If you think that it isn't, go argue that point with the sidebar people. —Preceding unsigned comment added by 141.189.251.1 ( talk) 15:15, 1 September 2009 (UTC)
I know this is written as a C++ article, but should some mention be made about the existence of the Vector data structure in other languages? I know for sure that Java has them, and I'm sure there are others as well. Perhaps this should be given a more generic name, such as "Vector (programming)" or "Vector (data structure)" (to distinguish it from programming geometrical vectors). And maybe some code samples from other languages could be added. Much of the rest of the article would be true for any language, so it seems redundant to create a new article for each language (e.g. "Vector (Java)", etc.) Lurlock ( talk) 21:33, 26 December 2009 (UTC)
well, maybe I'm slow but from the example, "It is located at index 6 (implementation-dependent)" makes no sense to me, it's going to be 7, right? I've tried it in sev'l compilers.-- Billymac00 ( talk) 18:31, 29 March 2010 (UTC)
random_shuffle
algorithm. The position of the largest number depends upon the underlying implementation of that algorithm, and the rand
function used internally. The result is 6 on
VC9.
decltype
(
talk)
18:41, 29 March 2010 (UTC)
Erasing elements from a vector or even clearing the vector entirely does not necessarily free any of the memory associated with that element. This is because the maximum size of a vector since its creation is a good estimate of the future size of the vector. -- shouldn't the second sentence begin with "Thus" instead of "This is because"? —Preceding unsigned comment added by 79.160.125.105 ( talk) 10:04, 16 May 2011 (UTC)
erase
, and would not affect memory usage of the vector (capacity
is unchanged).
decltype
(
talk)
07:21, 2 December 2011 (UTC)
After accidentally stumbling on wctype.h, I've got an idea that it would be a good addition to link the names of the member functions to some external reference. I think we could link to this third-party wiki. It uses the same wiki engine and content licensing terms as the Wikipedia, so as a bonus it could serve as a good place to dump any material that fails WP:NOT#MANUAL. What do others think about this?
P.S. I use that website personally, so there's slight conflict of interest :). Anyways, I think this shouldn't be a problem. 1exec1 ( talk) 20:39, 1 October 2011 (UTC)
There's an ongoing discussion about an reorganization of the articles about the C++ containers. This page is one of the subjects of that discussion. Please express your opinion. 1exec1 ( talk) 20:15, 2 December 2011 (UTC)
![]() | This redirect does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | C/C++ | |||
|
![]() | Text and/or other creative content from this version of Vector (C++) was copied or moved into Sequence containers (C++) with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
The result of the proposal was no consensus to move. JPG-GR ( talk) 18:45, 26 March 2008 (UTC)
Maybe std::vector would be a better title - it's more precise, and doesn't require any disambiguation. -- Zundark 15:57, 24 July 2006 (UTC)
I actually agree with this. std::vector is much more appropriate. Dlother ( talk) 18:20, 21 February 2008 (UTC)
I don't agree. Wikipedia is an encyclopedia, not a reference manual. I understand that other languages provide very similar constructs. In my opinion, this page should be primarily about this construct and its implementation, rather than about the particular syntax of C++. (I'm not going to be militant about this; just recording my opinions since you asked for discussion.) Sam Staton ( talk) 13:56, 8 March 2008 (UTC)
Why isn't there a template with a box on the right linking this to all the other STL pages? (or C++ Standard Library pages, for that matter?) This should be worked on. Figs 21:35, 4 March 2007 (UTC)
I have tagged the article because I think it makes a quite a few dubious or outright false claims. Examples:
I'll get to fixing these issues shortly. decltype 10:51, 29 January 2009 (UTC)
“ | the address of the (zero-indexed) 7th element in a vector v is the address of the 7th element (zero-indexed) of the vector v | ” |
Hi, I am currently considering renaming this article to conform to a common convention for C++ Standard Library components. The full discussion can be found here. decltype 09:46, 6 March 2009 (UTC)
In the Pros and cons section, one can read the two following statements:
The second paragraph was contributed later on, did the author forget to remove the first one? Erebadan ( talk) 04:29, 27 May 2009 (UTC)
There shouldn't be any argument that vector is part of the standard template library. If you think that it isn't, go argue that point with the sidebar people. —Preceding unsigned comment added by 141.189.251.1 ( talk) 15:15, 1 September 2009 (UTC)
I know this is written as a C++ article, but should some mention be made about the existence of the Vector data structure in other languages? I know for sure that Java has them, and I'm sure there are others as well. Perhaps this should be given a more generic name, such as "Vector (programming)" or "Vector (data structure)" (to distinguish it from programming geometrical vectors). And maybe some code samples from other languages could be added. Much of the rest of the article would be true for any language, so it seems redundant to create a new article for each language (e.g. "Vector (Java)", etc.) Lurlock ( talk) 21:33, 26 December 2009 (UTC)
well, maybe I'm slow but from the example, "It is located at index 6 (implementation-dependent)" makes no sense to me, it's going to be 7, right? I've tried it in sev'l compilers.-- Billymac00 ( talk) 18:31, 29 March 2010 (UTC)
random_shuffle
algorithm. The position of the largest number depends upon the underlying implementation of that algorithm, and the rand
function used internally. The result is 6 on
VC9.
decltype
(
talk)
18:41, 29 March 2010 (UTC)
Erasing elements from a vector or even clearing the vector entirely does not necessarily free any of the memory associated with that element. This is because the maximum size of a vector since its creation is a good estimate of the future size of the vector. -- shouldn't the second sentence begin with "Thus" instead of "This is because"? —Preceding unsigned comment added by 79.160.125.105 ( talk) 10:04, 16 May 2011 (UTC)
erase
, and would not affect memory usage of the vector (capacity
is unchanged).
decltype
(
talk)
07:21, 2 December 2011 (UTC)
After accidentally stumbling on wctype.h, I've got an idea that it would be a good addition to link the names of the member functions to some external reference. I think we could link to this third-party wiki. It uses the same wiki engine and content licensing terms as the Wikipedia, so as a bonus it could serve as a good place to dump any material that fails WP:NOT#MANUAL. What do others think about this?
P.S. I use that website personally, so there's slight conflict of interest :). Anyways, I think this shouldn't be a problem. 1exec1 ( talk) 20:39, 1 October 2011 (UTC)
There's an ongoing discussion about an reorganization of the articles about the C++ containers. This page is one of the subjects of that discussion. Please express your opinion. 1exec1 ( talk) 20:15, 2 December 2011 (UTC)