Files
kotlin-fork/kotlin-native/runtime/src/main/cpp/std_support

Support for C++ standard library.

This contains backported utilities from future standards, implementation of not-yet-standardized proposals, and adjustments of standardized utilities to be used within Kotlin/Native runtime.

Everything here lives in kotlin::std_support namespace.

Backporting from C++20:

Proposals:

Adjustments:

  • CStdlib.hpp - std_support::aligned_malloc and std_support::aligned_free as a version of malloc and free that allows changing alignment.
  • Memory.hpp - std_support::nullptr_unique - nullptr replacement for unique_ptr that takes an allocator.