andrealorenzon / AP_exam

Binary Tree implementation
1 stars 2 forks source link

overload index[] operator #6

Open andrealorenzon opened 5 years ago

andrealorenzon commented 5 years ago

Accepts a key value

Returns (2 options, we have to choose)

  1. a shared_ptr the node with corresponding key
  2. the corresponding value

Bonus: accept slices (only for int keys?)