Skip to content

Commit 6ffa1b5

Browse files
Polish type erasure blog post
1 parent 93aeacc commit 6ffa1b5

20 files changed

+58
-40
lines changed

Content.org

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,14 +1000,14 @@ CLOCK: [2026-01-24 Sat 18:10]--[2026-01-24 Sat 20:06] => 1:56
10001000
CLOCK: [2026-01-24 Sat 10:47]--[2026-01-24 Sat 10:47] => 0:00
10011001
:END:
10021002

1003-
Ever looked at ~std::any~ and wondered what's actually going on behind
1004-
the scenes? Beneath the intimidating interface is a clean case of type
1005-
erasure: concrete types hidden behind a small, uniform wrapper.
1006-
1007-
Starting from familiar tools---virtual functions and templates---we'll
1008-
build a minimal ~std::any~. Along the way, type erasure shifts from
1009-
buzzword to practical technique you can recognize and reuse in your own
1010-
designs.
1003+
Ever looked at ~std::any~ and wondered what's going on behind the
1004+
scenes? Beneath the intimidating interface is a classic technique
1005+
called type erasure: concrete types hidden behind a small, uniform
1006+
wrapper.
1007+
1008+
Starting from familiar tools like virtual functions and templates, we'll
1009+
build a minimal ~std::any~. By the end, you'll have a clear
1010+
understanding of how type erasure works under the hood.
10111011

10121012
** Polymorphism with interfaces
10131013

content/posts/deriving-type-erasure.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ tags = ["pers", "blog"]
66
draft = false
77
+++
88

9-
Ever looked at `std::any` and wondered what's actually going on behind
10-
the scenes? Beneath the intimidating interface is a clean case of type
11-
erasure: concrete types hidden behind a small, uniform wrapper.
12-
13-
Starting from familiar tools---virtual functions and templates---we'll
14-
build a minimal `std::any`. Along the way, type erasure shifts from
15-
buzzword to practical technique you can recognize and reuse in your own
16-
designs.
9+
Ever looked at `std::any` and wondered what's going on behind the
10+
scenes? Beneath the intimidating interface is a classic technique
11+
called type erasure: concrete types hidden behind a small, uniform
12+
wrapper.
13+
14+
Starting from familiar tools like virtual functions and templates, we'll
15+
build a minimal `std::any`. By the end, you'll have a clear
16+
understanding of how type erasure works under the hood.
1717

1818

1919
## Polymorphism with interfaces {#polymorphism-with-interfaces}
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)