Upper bound for nikita-volkov/stm-containers#3