Class: Benchcc::MPL::Sequence

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/benchcc/mpl.rb

Direct Known Subclasses

List, Vector

Instance Method Summary collapse

Instance Method Details

#headers(name) ⇒ Object



12
13
14
15
16
17
# File 'lib/benchcc/mpl.rb', line 12

def headers(name)
  [
    "boost/mpl/#{name}/#{name}#{[size.round_up(1), 50].min}.hpp",
    size > 50 ? "boost/mpl/#{name}/aux_/item.hpp" : nil
  ].compact
end

#includesObject



8
9
10
# File 'lib/benchcc/mpl.rb', line 8

def includes
  headers.map { |hdr| "#include <#{hdr}>" }.join("\n")
end