---
title: "#type-erasure articles | Hashnode"
description: "Explore 6 articles tagged #type-erasure on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/type-erasure"
---

Tag

# #type-erasure

6 posts · 0 followers

[Android Expert](https://hashnode.com/@android-expert) · [11h ago](https://hashnode.com/posts/lambdas-aren-t-free-a-bytecode-tour-of-kotlin-s-inline-and-reified/6af49f3b31498f870660e593)

### [Lambdas Aren’t Free: A Bytecode Tour of Kotlin’s inline and reified](https://android-expert.hashnode.dev/lambdas-aren-t-free-a-bytecode-tour-of-kotlin-s-inline-and-reified?utm_source=hashnode&utm_medium=feed)

See what Kotlin inline and reified really do at the bytecode level: lambda allocations, code bloat, noinline, crossinline and Android use cases.

16 min read · [android-expert.hashnode.dev](https://android-expert.hashnode.dev/lambdas-aren-t-free-a-bytecode-tour-of-kotlin-s-inline-and-reified?utm_source=hashnode&utm_medium=feed)

[Stanislav Kirichok](https://hashnode.com/@Rumata) · [Jul 10, 2023](https://hashnode.com/posts/exploring-dynamic-casting-and-type-erasure-in-swift/64ac978ea12b11cafa162123)

### [Exploring Dynamic Casting and Type Erasure in Swift](https://swiftdev.hashnode.dev/exploring-dynamic-casting-and-type-erasure-in-swift?utm_source=hashnode&utm_medium=feed)

Bridging Linked Types in Heterogeneous Arrays

6 min read · [swiftdev.hashnode.dev](https://swiftdev.hashnode.dev/exploring-dynamic-casting-and-type-erasure-in-swift?utm_source=hashnode&utm_medium=feed)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Apr 19, 2023](https://hashnode.com/posts/getting-type-names-in-c/64403a66b68d6ae0a0c6adb4)

### [Getting Type Names in C++](https://radiantsoftware.hashnode.dev/getting-type-names-in-c?utm_source=hashnode&utm_medium=feed)

For logging and debugging it can be extremely useful to get a string for the name of a type in C++. However, the standard library doesn't supply a great way of doing that. We don't want to use the standard typeid operator, std::type\_info, or std::typ...

6 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/getting-type-names-in-c?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/getting-type-names-in-c/64403a66b68d6ae0a0c6adb4)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Apr 14, 2023](https://hashnode.com/posts/c-type-erasure-on-the-stack-part-iii/6438c06a04731f578d5b82b4)

### [C++ Type Erasure on the Stack - Part III](https://radiantsoftware.hashnode.dev/c-type-erasure-on-the-stack-part-iii?utm_source=hashnode&utm_medium=feed)

In Part I of this blog series, we covered how to convert our type name to a string, how to safely store type-erased objects, and how to handle trivial types (AnyTrivial). In Part II we covered how to manage type-erased storage of general types (AnyOb...

16 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/c-type-erasure-on-the-stack-part-iii?utm_source=hashnode&utm_medium=feed)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Apr 13, 2023](https://hashnode.com/posts/c-type-erasure-on-the-stack-part-ii/6437502b2bf59b3f7278be06)

### [C++ Type Erasure on the Stack - Part II](https://radiantsoftware.hashnode.dev/c-type-erasure-on-the-stack-part-ii?utm_source=hashnode&utm_medium=feed)

In Part I of this blog series, we covered how to get a string with our type name, how to safely store type-erased objects, and how to handle trivial types. Now we'll cover how to handle type-erased storage of general types (AnyObject): ones whose cop...

10 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/c-type-erasure-on-the-stack-part-ii?utm_source=hashnode&utm_medium=feed)

[Paul Mattione](https://hashnode.com/@radiantsoftware) · [Apr 12, 2023](https://hashnode.com/posts/c-type-erasure-part-i/6436996a8bb96b3fa5ce5055)

### [C++ Type Erasure on the Stack - Part I](https://radiantsoftware.hashnode.dev/c-type-erasure-part-i?utm_source=hashnode&utm_medium=feed)

Type erasure is where the type of an object is hidden so that the object can be utilized in a type-independent manner. Type erasure is extremely useful in several scenarios, including heterogeneous containers (containers that store objects of differe...

11 min read · [radiantsoftware.hashnode.dev](https://radiantsoftware.hashnode.dev/c-type-erasure-part-i?utm_source=hashnode&utm_medium=feed)
