Changeset b14dd03 for doc/generic_types
- Timestamp:
- Apr 12, 2017, 3:57:49 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e869e434
- Parents:
- eaa5043
- Location:
- doc/generic_types/evaluation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/Makefile
reaa5043 rb14dd03 6 6 .PHONY: all clean distclean run-c run-cpp run-cfa run 7 7 8 all: c-bench cpp-bench cfa-bench 8 all: c-bench cpp-bench cfa-bench cpp-vbench 9 9 10 10 # rewrite object generation to auto-determine deps -
doc/generic_types/evaluation/cpp-vbench.cpp
reaa5043 rb14dd03 42 42 ) 43 43 44 pair max2 = { std::make_unique<boolean>(false), std::make_unique<character>('\0') }; 44 auto max2 = std::make_unique<pair>( std::make_unique<boolean>(false), 45 std::make_unique<character>('\0') ); 45 46 REPEAT_TIMED( "pop_bool_char", 46 max2 = std::max( max2, t2.pop()->as<pair>() ); 47 std::unique_ptr<object> x = t2.pop(); 48 if ( x->as<pair>() > *max2 ) { max2.reset( static_cast<pair*>(x.release()) ); } 47 49 ) 48 50 }
Note: See TracChangeset
for help on using the changeset viewer.