teslamotors / fixed-containers

C++ Fixed Containers
MIT License
352 stars 31 forks source link

Use ArrowProxy for iterators to remove first()/second() api discrepancy #40

Closed alexkaratarakis closed 1 year ago

alexkaratarakis commented 1 year ago

ArrowProxy vs existing (PairView-based) implementation:

Pros:

Cons:

All of the above is demo'ed in the unit tests.

Other option that returns l-value was explored: https://github.com/teslamotors/fixed-containers/pull/38 Comparison of the l-value approach with ArrowProxy https://github.com/teslamotors/fixed-containers/pull/39

alexkaratarakis commented 1 year ago

Closing in favor of: https://github.com/teslamotors/fixed-containers/pull/45 https://github.com/teslamotors/fixed-containers/pull/48