Stack<T>.TryPop(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
bool TryPop([Runtime::InteropServices::Out] T % result);
public bool TryPop (out T result);
member this.TryPop : 'T -> bool
Public Function TryPop (ByRef result As T) As Boolean
Parameters
- result
- T
If present, the object at the top of the Stack<T>; otherwise, the default value of T
.
Returns
true
if there is an object at the top of the Stack<T>; false
if the Stack<T> is empty.
Applies to
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.