示例#1
0
	static
	typename
	Function::result_type
	execute(
		Index const _index,
		Function const &_function,
		FailFunction const &_fail_function
	)
	{
		return
			_index
			==
			CurrentIndex::value
			?
				_function(
					CurrentIndex()
				)
			:
				fcppt::mpl::detail::runtime_index<
					MaxIndex,
					typename
					boost::mpl::next<
						CurrentIndex
					>::type
				>::execute(
					_index,
					_function,
					_fail_function
				)
			;
	}
示例#2
0
const Expression *Constant::GetValue() const throw ()
{
	if (CurrentPass != CurrentAssembler->GetCurrentPass())
	{
		CurrentPass = CurrentAssembler->GetCurrentPass();
		DefinitionCount = 0;
	}

	return Values[CurrentIndex()];
}