Login
You're viewing the code4lib.social public feed.
  • Nov 26, 2026, 11:23 PM

    C++ people be like

    Oh Reader is a concept implemented by any type providing read().

    A template<Reader r> buf_reader wraps reader.

    For runtime dispatch, we created any_reader with a template<Reader r> constructor which gets a pointer to the read() method and the destructor and stores it as the inner reader using type erasure.

    💬 1🔄 0⭐ 0

Replies