本文整理汇总了C++中ratl::vector_vs::empty方法的典型用法代码示例。如果您正苦于以下问题:C++ vector_vs::empty方法的具体用法?C++ vector_vs::empty怎么用?C++ vector_vs::empty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ratl::vector_vs
的用法示例。
在下文中一共展示了vector_vs::empty方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void Rail_Initialize()
{
for (int lane=0; lane<mRailLanes.size(); lane++)
{
mRailLanes[lane].Initialize();
}
for (int mover=0; mover<mRailMovers.size(); mover++)
{
mRailMovers[mover].Initialize();
}
// Precache All The Woosh Sounds
//-------------------------------
if (!mRailMovers.empty())
{
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh1"));
mWooshSml.push_back(G_SoundIndex("sound/effects/woosh2"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh3"));
mWooshSml.push_back(G_SoundIndex("sound/effects/woosh4"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh5"));
mWooshSml.push_back(G_SoundIndex("sound/effects/woosh6"));
mWooshSup.push_back(G_SoundIndex("sound/effects/woosh7"));
mWooshSup.push_back(G_SoundIndex("sound/effects/woosh8"));
mWooshSup.push_back(G_SoundIndex("sound/effects/woosh9"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh10"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh11"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh12"));
mWooshSml.push_back(G_SoundIndex("sound/effects/woosh13"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh14"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh15"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh16"));
mWooshSml.push_back(G_SoundIndex("sound/effects/woosh17"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh18"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh19"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh20"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh21"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh22"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh23"));
mWooshSup.push_back(G_SoundIndex("sound/effects/woosh24"));
mWooshSup.push_back(G_SoundIndex("sound/effects/woosh25"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh26"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh27"));
mWooshMed.push_back(G_SoundIndex("sound/effects/woosh28"));
mWooshLar.push_back(G_SoundIndex("sound/effects/woosh29"));
mWooshTun.push_back(G_SoundIndex("sound/effects/whoosh_tunnel"));
}
}
示例2:
bool Pilot_AnyVehiclesRegistered()
{
return (!mRegistered.empty());
}