You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
470 B

  1. #include "benchmark-shared-unique.h"
  2. void* forward_raw(void* p) {
  3. return p;
  4. }
  5. std::unique_ptr<size_t> forward_unique(std::unique_ptr<size_t>&& p) {
  6. return std::move(p);
  7. }
  8. std::shared_ptr<size_t> forward_shared(std::shared_ptr<size_t>&& p) {
  9. return std::move(p);
  10. }
  11. std::unique_ptr<Large> forward_unique_large(std::unique_ptr<Large>&& p) {
  12. return std::move(p);
  13. }
  14. std::shared_ptr<Large> forward_shared_large(std::shared_ptr<Large>&& p) {
  15. return std::move(p);
  16. }