time complexity for push_within_capacity
This commit is contained in:
parent
cb8ce9d9e5
commit
bb6dca0fc8
1 changed files with 4 additions and 0 deletions
|
@ -1966,6 +1966,10 @@ impl<T, A: Allocator> Vec<T, A> {
|
|||
/// }
|
||||
/// assert_eq!(from_iter_fallible(0..100), Ok(Vec::from_iter(0..100)));
|
||||
/// ```
|
||||
///
|
||||
/// # Time complexity
|
||||
///
|
||||
/// Takes *O*(1) time.
|
||||
#[inline]
|
||||
#[unstable(feature = "vec_push_within_capacity", issue = "100486")]
|
||||
pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue