MCPcopy Create free account
hub / github.com/Persper/code-analytics / ValidateStream

Function ValidateStream

test/cpp_test_repo/D/Utility.h:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74// �����״̬����ȷ�ԡ��������ȷ����������쳣��
75template <typename TStream>
76void ValidateStream(const TStream& stream)
77{
78 if (!stream) {
79 std::stringstream ss;
80 ss << "��״̬����" << StreamStatusToString(stream);
81 throw Exception(ss.str());
82 }
83}
84
85// ���ڽ����� map::equal_range �Ⱥ����ķ���ֵת��Ϊ�ɱ� foreach �﷨���ܵĽṹ��
86template <typename TIterator>

Callers

nothing calls this directly

Calls 2

StreamStatusToStringFunction · 0.70
ExceptionClass · 0.70

Tested by

no test coverage detected