Support findOrCreate() (with only a single lookup).
This is a very common pattern in practice -- and annoyingly difficult with STL maps. This required some refactoring so than index.insert() could be called before the row was actually constructed, based on the search parameters. It also required some awful hacks to support putting the creation function at the end of the argument list to findOrCreate(), with a variable-width arg list before it.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment