سؤال

I am wondering if C++11 or C++14 supports three or multiple valued logic. If not, any existing library does it?

هل كانت مفيدة؟

المحلول

Boost tribool provides an interface for three-state logic. It doesn't require c++11 or c++1y.

http://www.boost.org/doc/libs/1_55_0/doc/html/tribool.html

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top