Namespaces
Variants
Views
Actions

va_end

From cppreference.com
< cpp‎ | utility‎ | variadic
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (C++20)
Dynamic memory management
Program utilities
Coroutine support (C++20)
Variadic functions
Debugging support
(C++26)
Three-way comparison
(C++20)
(C++20)(C++20)(C++20)
(C++20)(C++20)(C++20)
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)

 
 
Defined in header <cstdarg>
void va_end( std::va_list ap );

The va_end macro performs cleanup for an ap object initialized by a call to va_start or va_copy. va_end may modify ap so that it is no longer usable.

If there is no corresponding call to va_start or va_copy, or if va_end is not called before a function that calls va_start or va_copy returns, the behavior is undefined.

[edit] Parameters

ap - an instance of the va_list type to clean up

[edit] Expanded value

(none)

[edit] See also

enables access to variadic function arguments
(function macro) [edit]
(C++11)
makes a copy of the variadic function arguments
(function macro) [edit]
accesses the next variadic function argument
(function macro) [edit]
C documentation for va_end