iceberg-cpp
Loading...
Searching...
No Matches
Functions
checked_cast.h File Reference

Checked cast functions for dynamic_cast and static_cast. Adapted from Apache Arrow https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/checked_cast.h. More...

#include <memory>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Functions

template<typename OutputType , typename InputType >
OutputType iceberg::internal::checked_cast (InputType &&value)
 
template<class T , class U >
std::shared_ptr< T > iceberg::internal::checked_pointer_cast (std::shared_ptr< U > r) noexcept
 
template<class T , class U >
std::unique_ptr< T > iceberg::internal::checked_pointer_cast (std::unique_ptr< U > r) noexcept
 

Detailed Description

Checked cast functions for dynamic_cast and static_cast. Adapted from Apache Arrow https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/checked_cast.h.