class Benchcc::MPL::List
Public Instance Methods
headers()
click to toggle source
Calls superclass method
Benchcc::MPL::Sequence#headers
# File lib/benchcc/mpl.rb, line 45 def headers; super 'list'; end
to_s()
click to toggle source
# File lib/benchcc/mpl.rb, line 33 def to_s tail = map(&:to_s).last(50) init = map(&:to_s).first([size - tail.size, 0].max) listN = "boost::mpl::list#{tail.size}<#{tail.join(', ')}>" init.reverse.zip(51..Float::INFINITY).reduce(listN) do |tail, x_size| x, size = x_size # we emulate mpl::push_front "boost::mpl::l_item<boost::mpl::long_<#{size}>, #{x}, #{tail}>" end end