initializer_list



  • Arcoth schrieb:

    @hustbaer:
    boost::optional ist praktisch einfach ein unique_ptr . Wieso statt unique_ptr optional nehmen?

    Ich denke, das ist nicht ganz richtig. Soweit ich weiß ist garantiert, dass das optionale Objekt innerhalb des boost::optional angelegt wird. Hier entfällt also die zusätzliche Indirektion und die dynamische Speicherallokation.


Anmelden zum Antworten