class Benchcc::MPL::Vector
Public Instance Methods
headers()
click to toggle source
Calls superclass method
Benchcc::MPL::Sequence#headers
# File lib/benchcc/mpl.rb, line 29 def headers; super 'vector'; end
to_s()
click to toggle source
# File lib/benchcc/mpl.rb, line 21 def to_s initial, rest = map(&:to_s).take(50), map(&:to_s).drop(50) vectorN = "boost::mpl::vector#{initial.size}<#{initial.join(', ')}>" rest.reduce(vectorN) do |tail, x| "boost::mpl::v_item<#{x}, #{tail}, 0>" # we emulate mpl::push_back end end