Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Function template assert_matches_not

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Function template assert_matches_not

boost::proto::assert_matches_not — Assert at compile time that a particular expression does not match the specified grammar.

Synopsis

// In header: <boost/proto/debug.hpp>

template<typename Grammar, typename Expr> 
  void assert_matches_not(Expr const & expr);

Description

Используйте прото::assert_matches_not(), чтобы утверждать, что выражение не соответствует грамматике.

Пример:

typedef proto::plus< proto::terminal< int >, proto::terminal< int > > PlusInts;
proto::assert_matches_not<PlusInts>( proto::lit("a string") + 42 );

Смотри также:

Заметки:

Эквивалент BOOST_MPL_ASSERT_NOT((proto::matches).


PrevUpHomeNext

Статья Function template assert_matches_not раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 13:30:38/0.0050430297851562/1