Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

An Efficient Variant Type


November, 2005: An Efficient Variant Type

Listing 5

  struct fxn_ptr_table
  {
    std::type_info const& (*type)();
    void (*destructor)(object_holder&);
    void (*static_delete)(object_holder&);
    void (*clone)(object_holder&, const object_holder&);
    void (*assign)(object_holder&, const object_holder&);
    bool (*is_optimized)();
    void (*swap)(object_holder&, object_holder&);
  };


Related Reading


More Insights