C++ new and delete Operators | Standard C Library Functions | Teradata Vantage - C++ new and delete Operators - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

For C++ UDFs and external procedures, you can use the C++ new or delete operators. Teradata overwrites these operators using FNC_malloc and FNC_free. The UDF or external procedure must catch the std::bad_alloc exception when Teradata cannot fulfill a memory allocation request. New operator calls may be implicitly hidden in a C++ library, so make sure the UDF or external procedure catches exceptions from those library functions also.